The famous websocket arrival...

Get help using Construct 2

Post » Thu Feb 14, 2013 11:31 am

you would need to do a lot of "hacks" to get that to work as it expects JSON coming in and it sends JSON to the client. hence that if you read that it requires a "front end" script that the new websockets plugin doesn't supply.

the websocket plugin as is has no JSON support

I guess if you wanted to you could use rex's hash table to read the JSON and process the out going messages to JSON by hand but it looks funky.

that setup with node expects stuff coming in to look like this

{"Type":0,"Name":"Briermay"}

most novice users will find the new websocket plugin useless as its just a bare-bones wrapper around the websocket protocol and would be better off to stick with the socket.io version for now.briermay2013-02-14 11:40:22
B
6
S
1
G
1
Posts: 19
Reputation: 664

Post » Thu Jul 18, 2013 2:18 am

Hello! I would like to know how web socket works? and I have tried using AJAX function to send mysql data over which apparently it doesnt work .
i am using http://127.0.0.1/savaData.php but this link doesnt work .
I dont wish to use a host company like (e.g example.com)
Thank you :D
B
6
S
2
G
2
Posts: 15
Reputation: 1,564

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests