Static
Private
connectionsStatic
Private
forStatic
Private
forStatic
Private
outboundsStatic
sizeReturns the number of registered outbounds.
Static
addStatic
addStatic
addRegisters an outbound configuration. Registered outbounds are sent to clients when they open a connection.
The outbound configuration to register.
Static
clearStatic
clearStatic
closeStatic
getRetrieves all registered outbound configurations.
An array of registered outbound configurations.
Static
getStatic
getStatic
getRetrieves the registered outbound configuration for the specified method.
The method of the outbound configuration.
The registered outbound configuration, or undefined if not found.
Static
hasStatic
initStatic
loadStatic
Private
onStatic
removeStatic
resendRe-sends all outbounds to the connection where the resendAfterAuthentication flag is present.
The WebSocket connection to resend the outbounds to.
Static
resetStatic
sendSends the provided message data to all WebSocket connections that are subscribed to the specified outbound method.
The method of the outbound for which to send the message data.
The method representing the message data being sent.
The data to be sent as part of the message.
Optional
key: numberOptional key used to filter the connections to update. If provided, only connections with the specified key will be updated.
Static
sendTriggers the requested outbound to be sent to the given connection. The connection automatically subscribes for updates when it is enabled in the outbound config.
Method of the requested outbound.
The WebSocket connection to send the outbound data to.
Optional
requestConfig: { Can contain addidional parameters associated with the request, like the length of data (if partially-loaded outbound)
Static
sendSends all outbound data to a client. This is triggered once the client opens a new connection. The connection automatically subscribes for updates when it is enabled in the outbound config.
Data is sent to this connection.
Static
sendSends updated data to all subscribed connections for the defined methods. Once the first outbound (method[0]) has been updated, the promise is resolved.
Methods of the outbounds to be updated.
Optional
key: anyOptional key for filtering the connections to update.
Static
Private
sendSends the current state of data to subscribed connections for the specified method. This method is responsible for sending updated data to connections that have subscribed to the specified method.
The method of the outbound that should be updated.
Optional
key: numberOptional key for filtering the connections to update.
If the outbound for the specified method does not exist or subscription is not enabled.
Static
unsubscribeUnsubscribes the provided connection from all subscriptions. This can be used when the connection closes the connection.
The closed connection.
Generated using TypeDoc
Manages all used outbounds. All active outbounds must be registered using
WebsocketOutbounds.addOutbound(...)
. Registered outbounds are sent to clients automatically when they open a connection. Eager loading and lazy loading are supported, with eager loading being the default strategy. Note: Outbounds registered using decorators are not automatically added again.