1.7.1 • Published 4 years ago

lobby-server v1.7.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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.

License

MIT

1.7.1

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago