• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Asset - Extension WebSockets Extension (FREE & Open Source)

Mert

Member
Update

web_socket_close(real ConnectionNumber);
is reworked and added to the documentation in the blog.
I'm still working on that Go WebSocket server tutorial.
 

Mert

Member
websockets for gamemaker lol
Ah, I checked some of them actually.

There are two reasons why I made this extension.
A. Other extensions use some sort of "constantly looking for incoming data" strategy. They have arrays inside of them to store incoming data, which are then returned to Game Maker and removed from the array. This is very expensive process! My extension does not do that! It simply has 4 promises(4*connection number exactly). Everytime a network event is triggered, I pass this data to Game Maker via Social Async Event (with GMS_API)
B. It does not uses external libraries, made purely with Javascript sockets: Really lightweight! This is intented because <check below>
C. It's a part of my framework for Facebook Instant Games.
 
Last edited:
Top