From e484ab331b8744d45b6955c8acd8e0ca58533a1c Mon Sep 17 00:00:00 2001 From: copygirl Date: Mon, 3 Nov 2025 16:40:02 +0100 Subject: [PATCH] Inital commit --- README.md | 16 +++++++++++ copySocket.gd | 71 +++++++++++++++++++++++++++++++++++++++++++++++ copySocket.gd.uid | 1 + copySocket.tscn | 6 ++++ description.txt | 1 + send.gd | 34 +++++++++++++++++++++++ send.gd.uid | 1 + 7 files changed, 130 insertions(+) create mode 100644 README.md create mode 100644 copySocket.gd create mode 100644 copySocket.gd.uid create mode 100644 copySocket.tscn create mode 100644 description.txt create mode 100644 send.gd create mode 100644 send.gd.uid diff --git a/README.md b/README.md new file mode 100644 index 0000000..6a0ef25 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# copySocket + +.. is a simple [SnekStudio] module that hosts a WebSocket server to receive hardcoded commands to affect certain things within SnekStudio from the outside. When added, it hosts a server at `ws://127.0.0.1:13981`. + +The included `send.gd` script may be used to send commands if another utility is not available, however it takes a small amount of time to start up. The following example makes the `CameraPositions` mod switch to "Camera 1". + +```sh +# --headless - Don't create a window. +# -q/--quiet - Only print errors. +# -s