RoSocket - WebSockets in Roblox

Hello devforum! I have made a module to replicate “websockets” in roblox (not full support) that has it’s own node server, and some settings that you can modify.

It’s currently production ready, but may still have some bugs, which is why I want a feedback on this in-case there’s any bugs.

The module includes modules like “Maid”, “Signal” which are already known and made by other big developers. Custom modules are “Signature” and “Reader”, which are used for custom utility of the module. The signature module provides the watermark/text format, and the reader module provides help retrieving/sending data to the endpoint of the server of your choice.

Current features Creating a new socket object connection.
Sending data to the socket.
Reading data from socket.
Signals that get fired on each new message received (and also when disconnecting the socket).
Disconnection support.
Features that I think of adding Custom binary type support, which the server will read and connect to the websocket in that provided binary type.
Remove the Connect function directly from the module, add a New function which creates a socket object, then move over the Connect function to the created socket object, and add a OnOpen event, and some error checking such as opening a already opened socket

You can find it here: RoSocket · GitHub
Please leave some suggestions of what should I add and some feedback. Thanks!

7 Likes