Construct an instance of the base gateway, initialize clients, logger and emitter properties.
Emitting events once connections/updates appear.
This property implements list of currently connected clients by storing their challenges. Challenge gets removed from list once client disconnects.
This property permits to log information to the console or in files depending on the configuration. This logger instance can be accessed by extending listeners to use a common log process.
This property implements gateway server which is broadcasts different messages to single or multiple clients.
Contains the full websocket connection URL (including path).
This method handles gateway initialize hook.
Websocket connection param, holds server and client info.
Removes client challenge from list
This method handles connection via websocket with the client.
Additionally, this method will emit the event auth.open
given the
presence of an authentication challenge in the signed request cookies.
UDP datagrap socket used to connect.
HTTP Request forwarded to enable reading signed client cookies.
This method handles closing connection with the client.
After client was disconnected - remove his challenge from list.
In case of a successful validation attempts, i.e. when the challenge
parameter has been found in a recent transfer transaction's message,
a document will be insert in the collection authChallenges
.
Websocket connection param, holds server and client info.
Removes client challenge from list
Generated using TypeDoc
COMMON
This class serves as the base class for custom gateways which are connecting with the client through the websocket.
This class can be used by extending it and adding different
handlers.
v0.2.0