which socket.io plugin?

Discussion and feedback on Construct 2

Post » Mon Jul 22, 2013 12:02 pm

Hi, there seem to be two plugins developed for socket.io:

JohnnySheffilds: http://www.scirra.com/forum/plugin-zack0wack0s-socketio-mod_topic56503.html

Zacks: http://www.scirra.com/forum/plugin-zack0wack0s-construct-2-plugins_topic43422.html

Anyone know what the difference is between them, and which one is best to use to use web sockets to node.js?
B
17
S
6
G
3
Posts: 370
Reputation: 3,942

Post » Mon Jul 22, 2013 1:43 pm

There's an official websocket plugin.
In general, I'd recommend to use official plugins as much as possible.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Mon Jul 22, 2013 1:47 pm

Wow, thats great. I cant open the capx in the socket.io tutorial which requires the unofficial one (https://www.scirra.com/tutorials/571/modded-socketio/page-1) anyway, so perhaps Ill just go it alone with the official plugin.
B
17
S
6
G
3
Posts: 370
Reputation: 3,942

Post » Mon Jul 22, 2013 2:39 pm

Ive just realised that the official one doesnt have the fallbacks that socket.io has. i.e. socket.io will work with IE8&9 (i.e. work with people stuck with XP) via its flash socket fallback.

Also, I cant get the oficial web socket plugin to work with socket.io running on node.js.   I can write a js page which works with it, but cant get C2 to work with it. It never connects, no errors, nothing gets sent or received.
B
17
S
6
G
3
Posts: 370
Reputation: 3,942


Return to Construct 2 General

Who is online

Users browsing this forum: Brendan2007, hanjmarrie, Yahoo [Bot] and 7 guests