Skip to content

bradstevanus1/lobby-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published