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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -