what is the best way to use websocket

Get help using Construct 2

Post » Tue Aug 04, 2015 3:53 pm

hi
i want to use websocket plugin(s) and i used official websocket + node js + ws for server but its not answer some times
so what plugin and way is the best ?
there are so many plugins for websocket and so many ways
i want an stable way
B
16
S
6
Posts: 243
Reputation: 1,755

Post » Tue Aug 04, 2015 7:15 pm

The websocket connections are less reliable then the official scirra multiplayer connections.

You will have to implement a method for redundancy in your connections with the node js server.
Something like checking if a transmission has been received/processed, and if not, try again till it gets through or store information locally which can be updated once the connection is back.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Tue Aug 04, 2015 8:05 pm

lennaert wrote:The websocket connections are less reliable then the official scirra multiplayer connections.

You will have to implement a method for redundancy in your connections with the node js server.
Something like checking if a transmission has been received/processed, and if not, try again till it gets through or store information locally which can be updated once the connection is back.

yes thanks for the advice i will sync everything in every sec !
B
16
S
6
Posts: 243
Reputation: 1,755


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 33 guests