Constructor
# new WebSocketClient(ws, connectionId, userId, investigationId, logger)
Create a WebSocket client
Parameters:
| Name | Type | Description |
|---|---|---|
ws |
WebSocket
|
WebSocket instance |
connectionId |
string
|
Connection ID |
userId |
string
|
User ID |
investigationId |
string
|
null
|
Investigation ID |
logger |
Logger
|
Logger instance |
Classes
Methods
# send(event, data)
Send an event to the client
Parameters:
| Name | Type | Description |
|---|---|---|
event |
string
|
Event name |
data |
unknown
|
Event data |