Node WebSocket Game Server: multiplayer relay template with rooms, msgpack, and rate limiting
mavisakalyan
HOBBYOP

a month ago

I built a stateless WebSocket relay template for multiplayer browser games and realtime apps (chat, collab tools, IoT dashboards).

What you get out of the box: rooms at /ws/:roomId with player caps, msgpack binary messages (about 40% smaller than JSON), per-client rate limiting, keepalive ping/pong for dead connection detection, origin allowlist, and /health + /metrics endpoints for monitoring and autoscaling.

27 projects have deployed it so far, 22 still active, 100% success on recent deploys.

Deploy: https://railway.com/deploy/nodejs-websocket-game-server

Source: https://github.com/mavisakalyan/node-ws-gameserver

Happy to answer questions via my template queue. Feedback welcome on what would make it a better starter.

0 Replies

Welcome!

Sign in to your Railway account to join the conversation.

Loading...