1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-26 01:50:29 +00:00
CC-Tweaked/projects
Jonathan Coates ae71eb3cae
Reduce coupling in websocket code
- Add a new WebsocketClient interface, which WebsocketHandle uses for
   sending messages and closing. This reduces coupling between Websocket
   and WebsocketHandle, which is nice, though admitedly only use for
   copy-cat :).

 - WebsocketHandle now uses Websocket(Client).isClosed(), rather than
   tracking the closed state itself - this makes the class mostly a thin
   Lua wrapper over the client, which is nice.

 - Convert Options into a record.

 - Clarify the behaviour of ws.close() and the websocket_closed event.
   Our previous test was incorrect as it called WebsocketHandle.close
   (rather than WebsocketHandle.doClose), which had slightly different
   semantics in whether the event is queued.
2023-09-21 18:59:15 +01:00
..
common Add a tag for blocks wired modems should ignore 2023-09-11 21:29:17 +01:00
common-api Add a tag for blocks wired modems should ignore 2023-09-11 21:29:17 +01:00
core Reduce coupling in websocket code 2023-09-21 18:59:15 +01:00
core-api Fix misplaced calls to IArguments.escapes 2023-06-27 18:28:54 +01:00
fabric Add a tag for blocks wired modems should ignore 2023-09-11 21:29:17 +01:00
fabric-api Publish Fabric jars to CF/Modrinth 2023-03-15 23:20:13 +00:00
forge Add a tag for blocks wired modems should ignore 2023-09-11 21:29:17 +01:00
forge-api License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
lints Generic dependency update 2023-08-31 19:14:37 +01:00
web Use Preact for static rendering of components 2023-09-20 22:09:58 +01:00
ARCHITECTURE.md License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00