Skip to content

Super dumb and simple WebSocket server with rooms designed to be used with WebRTC to pair clients

Notifications You must be signed in to change notification settings

StripedMonkey/ws_relay_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust CI

Building

Note: For those using a newer version of Libc you may need to build a musl version without libc in order to run on machines with older versions of libc (I.E build on arch linux, deploying to Ubuntu 20). To do so you install the musl target and run cargo build --release --target <Target> (in the case of linux x86_64-unknown-linux-musl)

Getting into rooms

  • Creating a room
    • Send "NewRoom" as the first message when connecting
    • The WebSocket will respond with the following:
      • {"JoinRoom":"<ROOM-ID>"}
  • Joining an already existing room
    • Send {"JoinRoom":"<ROOM-ID>"} as the first message when connecting
  • Creating a room with a specific ID
    • Send {"JoinWithCode" "<ROOM-ID>"}

After rooms have been joined and created any messages sent by any client will be seen by all other clients in the room

About

Super dumb and simple WebSocket server with rooms designed to be used with WebRTC to pair clients

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages