How do I send and receive JSON WebSocket events?

Get help using Construct 2

Post » Fri Aug 05, 2016 9:33 pm

Can someone help me out with how to properly send a PING and then Parse receiving messages from this API?

https://github.com/justintv/Twitch-API/ ... ter/PubSub

I have no idea how to go about doing it in Construct2.

Any and all help is greatly appreciated!
B
17
S
4
G
1
Posts: 14
Reputation: 1,503

Post » Mon Aug 08, 2016 1:39 pm

You have to use the WebSocket plugin to send messages after establishing a connection to their websocket server.

Then you simply push messages in the appropriate JSON format. You can use different plugins on C2 to build JSON, like Dictionary, rex Hash, rex JSON builder, etc.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824


Return to How do I....?

Who is online

Users browsing this forum: Magistross, mihirolover, tarek2 and 8 guests