T
T
techoproMas2018-07-13 00:40:23
comet
techoproMas, 2018-07-13 00:40:23

Can comet-server just be used as a "new message signal"?

Good afternoon. Tell me, is it possible to generate a unique id for each user when loading the page, save it in the database and in js, and using comet-server, simply pass the id of the sender and recipient to the same channel in order to receive notifications, and then process 2 of these id, make a request to the database and already issue messages?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor, 2018-07-13
@Levhav

In general, it can be used as a "new message signal".
But it will be easier not to bother with the generation of channels, but to send a private message. The comet server has an authorization mechanism and you can send a message using the user id.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question