An open API service indexing awesome lists of open source software.

https://github.com/skythecodemaster/cc-websocket-bridge


https://github.com/skythecodemaster/cc-websocket-bridge

Last synced: about 2 months ago
JSON representation

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