How to set up to not receive messages repeatedly?

42 views
Skip to first unread message

wx123...@gmail.com

unread,
Mar 20, 2018, 6:32:38 AM3/20/18
to nginxpushstream
Dear ,When I receive old messages through websocket, I always receive them repeatedly.
My js is as follows:
wsPushstream = new PushStream({
host : "192.168.0.117",
port : 80,
modes : "websocket",
messagesPublishedAfter : 500,
messagesControlByArgument : true
});

I know that the parameter 'messagesPublishedAfter' determines the last time the message was retrieved (ie, the message after 'new Date().getTime()-messagesPublishedAfter*1000'), but if this parameter is set too large, the subscriber will When you connect, you will receive repeated messages. How can you avoid it?

Wandenberg Peixoto

unread,
Mar 20, 2018, 6:39:37 AM3/20/18
to nginxpu...@googlegroups.com
Hi,

not sure if I understood your problem.
But usually, this kind of problem happens due to wrong configuration. 
Check if the configurations that you have set in the correct location on your nginx server are compatible with the configuration you are setting at the client.
Take a look at the examples that are in the readme, they can help you check what is the issue.

--
You received this message because you are subscribed to the Google Groups "nginxpushstream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nginxpushstream+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages