README
lobby-server
A small wrapper around websockets that handles realtime connections to online lobbies. The lobby-client is used to connect clients to lobbies on this server.
Installation
npm install lobby-server
Usage
// Create a Node.js HTTP server (with Express in this case)
const app = require("express")();
const http = require("http").createServer(app);
// Start the socket.io server that handles websocket requests from the client
require("lobby-server")(http);
// Listen on a port. This port must be specified when connecting with the client.
http.listen(3000);
Contributing
Pull requests are welcome. An issue can be opened for larger changes.