-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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