@whoiswhere/server
v1.0.2
Published
WebSocket server for monitoring web application users
Downloads
1
Readme
@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