@whoiswhere/server

1.0.2 • Public • Published

@whoiswhere/server Description WebSocket server for real-time monitoring of web application users. This package serves as the server-side implementation of the @whoiswhere ecosystem.

Installation Install the package via npm:

npm install @whoiswhere/server

Usage Import and initialize the server in your main application file:

const startWhoIsWhereServer = require('@whoiswhere/server');

// Start the server on port 3001
startWhoIsWhereServer(3001);

Parameters port (Optional): The port number to start the WebSocket server on. Defaults to 3001 if not specified. API Endpoints GET /activeWebUsers: Fetch the list of all active users across all web apps. GET /activeWebUsers/:app: Fetch the list of active users for a specific web app. License MIT

Dependents (0)

Package Sidebar

Install

npm i @whoiswhere/server

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

4.22 kB

Total Files

3

Last publish

Collaborators

  • isee_dev