Go websocket server for sending messages between clients in a session.
-
Fork the source code to get your own copy and compile it.
-
Start the server by running the executable.
-
Send a ws handshake to start a session on the server. When creating or joining a session, the first message sent on the connection is a control message containing the status of your connection. On error, you have 5 seconds to read the message then the connection is closed.
-
Use this code to connect other clients to the same session and share messages.
If you would like to contribute or outline issues and potential improvements, feel free to raise an issue or create a pull request.