lobby-server

1.7.1 • Public • Published

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

Package Sidebar

Install

npm i lobby-server

Weekly Downloads

0

Version

1.7.1

License

MIT

Unpacked Size

3.34 kB

Total Files

4

Last publish

Collaborators

  • bradstevanus1