Creates a new outbound configuration.
The method represents a unique identifier for the outbound. Data sent is labeled using the method.
The configuration object containing the method functionality.
The name of the function within the class.
The prototype of the class containing the source code of this outbound. (e.g., MyClass.prototype
)
Optional
lazyLoading: booleanWhen enabled, data is not sent initially to all clients. They can request it if needed.
Optional
resendAfterAuthenticationChange: booleanWhen enabled, data is updated once any route with modifiesAuthentication=true
is called by this connection.
This can be used to automatically send the user data to the client once the client is signed in.
Private
_lazyProtected
authenticatorPrivate
decoratorProtected
isThe method represents a unique identifier for the outbound. Data sent is labeled using the method.
Protected
objThe configuration object for the object method.
When enabled updated data resent using subscriptions does only send differential data (inserted, updated, deleted).
Optional
resendWhen enabled, data is updated once any route with modifiesAuthentication=true
is called by this connection.
This can be used to automatically send the user data to the client once the client is signed in.
Private
subscribedPrivate
subscribesPrivate
subscribesWhen enabled, data is not sent initially when the client supports caching. If the client supports caching, data is sent once the client has transmitted the cache key.
Returns the decorated function with added authentication checks.
Returns the decorated function with added authentication checks.
Rest
...data: any[]Checks if the decorated function has an authenticator.
When enabled, data is not sent initially to all clients. They can request it if needed.
When enabled, data is not sent initially to all clients. They can request it if needed.
Determines if subscriptions are enabled for this outbound.
Private
addChecks whether the connection has sufficient permission to receive this outbound.
Protected
authenticateOptional
requestData: anyBinds the decorator configuration reference to the WebSocket outbound.
The decorator configuration reference.
Checks if the provided connection is subscribed to changes for this outbound.
The WebSocket connection to check.
True if the connection is subscribed, otherwise false.
Gets the WebSocket connections that are subscribed to changes for this outbound.
Optional
key: numberOptional key used to filter the connections. If provided, only connections with the specified key will be returned.
An array of WebSocketConnection instances that are subscribed to changes for this outbound.
Private
handleSends the outbound data to the provided connection.
The WebSocket connection to send the data to.
Optional
id: numberOptional
groupId: numberOptional
sendDeleteOnAuthError: booleanProtected
sendHandles an error when it occurs during outbound function execution.
The WebSocket connection to send the error message to.
The error message to send.
Sends the outbound data to the provided connection. If caching is enabled, the caching hash is checked in advance.
The WebSocket connection to send the data to.
Optional
requestConfig: { Optional
sendDeleteOnAuthError: booleanChecks whether the data has been changed and sends the updated data to the client.
The WebSocket connection to send the data to.
The specific hash value
Sends the outbound data to the provided connection if it is subscribed to changes.
The WebSocket connection to send the data to.
Optional
sendDeleteOnAuthError: booleanSets the authenticator for the decorated function.
The websocket authenticator.
Enables subscribing to changes for this outbound.
Optional
filter: MessageFilterOptional filter for subscribing to filtered changes.
Subscribes the provided connection to this outbound's changes.
The WebSocket connection to subscribe.
The response object associated with the subscription.
Unsubscribes the provided connection from all subscriptions.
The WebSocket connection to unsubscribe.
Generated using TypeDoc
This object is used to configure an outbound. Outbounds are used to send data to clients and support features like authentication checks and subscription management.