https://github.com/skythecodemaster/cc-websocket-bridge
https://github.com/skythecodemaster/cc-websocket-bridge
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/skythecodemaster/cc-websocket-bridge
- Owner: SkyTheCodeMaster
- License: mit
- Created: 2023-03-13T23:32:17.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-20T21:44:51.000Z (over 1 year ago)
- Last Synced: 2025-02-05T18:06:42.782Z (4 months ago)
- Language: Lua
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cc-websocket-bridge
A simple server that bounces messages between clients on channels.
Similar to modems except that this is encrypted (and password protected) without any Lua side cost.# setup
* `git clone https://github.com/skythecodemaster/cc-websocket-bridge`
* `cd cc-websocket-bridge`
* `./setup.sh`Run `./run.sh` inside a tmux session, screen session, etc.
# usage
Using the server raw is the only method for now. Lua libraries that mimick `modem` and `rednet` will be added soon.```lua
local ws = http.websocket("wss://example.com/connect/[/password]")ws.send("Message!")
-- On another machine:
print(ws.receive())
-- Message!
```
Use `/connect/` for a public channel if desired