Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.8: CC:T 1.109.2, Lua 5.2 #339

Merged
merged 22 commits into from
Dec 31, 2023
Merged

v2.8: CC:T 1.109.2, Lua 5.2 #339

merged 22 commits into from
Dec 31, 2023

Conversation

MCJack123
Copy link
Owner

@MCJack123 MCJack123 commented Dec 31, 2023

This PR updates the version to v2.8, and brings CC:T 1.109.2 compatibility and Lua 5.2.

Closes #327, closes #330, closes #332, closes #336, closes #337

Not very well tested - very WIP.
Also fixed keys repeating after holding Ctrl+R/S/T.

The WebSocket server API now uses a new function, `websocketServer`. This function
initiates a server on the specified port, and returns a handle for listening
and closing the server.

The server no longer automatically closes when clients disconnect - the server
must close itself through the handle.

Clients are detected through the websocket_server_connect event, which
the server handle's `listen` function wraps around. This event contains the port
of the server that was connected, and the handle for this connection. The handle
has the same methods as a normal handle, but also contains a `clientID` field
that uniquely identifies this connection/client.

When a server connection receives a message, it sends the `websocket_server_message`
event, which consists of the client ID, the message, and whether the message
is a binary message. Likewise, when the connection is closed, the
`websocket_server_closed` message is sent with the client ID, and optionally the
code the connection was closed with.
@MCJack123 MCJack123 added the enhancement New feature or request label Dec 31, 2023
@MCJack123 MCJack123 added this to the v2.8 milestone Dec 31, 2023
@MCJack123 MCJack123 merged commit a0f929e into master Dec 31, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment