Skip to content

Latest commit

Β 

History

History
36 lines (24 loc) Β· 851 Bytes

README.md

File metadata and controls

36 lines (24 loc) Β· 851 Bytes

gateway

WebSocket server which negotiates between BUGOUT frontend and an internal redis streams instance which brokers communication among the various micro-services.

Client commands accepted

  • Make Move
  • Find Public Game
  • Create Private Pame
  • Join Private Game
  • Reconnect
  • Provide History
  • Req Sync
  • Beep (client-originated keepalive)

Overloaded router functionality

Ensures that connected browsers receive updates from redis, based on a client ID. Maintains crib notes on game states.

Deprecated: Running an example

In one terminal:

cargo run

In another terminal on the same machine:

cargo run --example client

Attribution

Thank you to the authors of ws-rs. We adapted your examples to fit this use case and appreciate the effort in releasing this library.