ios - Chat application using sockets architecture. -


i creating chat ios application using socket.io , had plan laid out , wondering if correct way it.

1) user sends message client side sever side, server side decides room/subscription send to.

2) if user inside room did not receive message stored in database until able receive it, removed database.

is correct way go doing group chat type messaging system

instead, can have event such "isreceived", , if users included in group chat has sent message can delete database.

i think better idea, two-way communication better assume user has received it.

i hope helps, happy coding.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -