The WAMP URI to call
If the uriBase
options was defined when opening the connection then uriBase
will be
prepended to the provided URI (unless the appropriate value is set in options
)
Positional arguments
Keyword arguments
Settings for how the registration should be done. This may vary between WAMP servers
Arbitrary data returned by the call operation
Close the WAMP connection
The reason for the closure
Some descriptive message about why the connection is being closed
Open a WAMP connection.
The library will not try to automatically reconnect if the operation fails or if the connection gets closed.
The transport provider to open the WAMP connection through
The options for configuing the WAMP connection
Details about the successful WAMP session
Open a WAMP connection that will automatically reconnect in case of failure or closure.
A function that should return a fresh TransportProvider for each reconnection attempt.
The attempt
argument for this callback will be 0
for the initial connection attempt.
For all reconnection attempts, the attempt
value will start from 1
.
The options for configuring the WAMP connection
Publish an event on the given WAMP URI
The WAMP URI to publish the event for
If the uriBase
options was defined when opening the connection then uriBase
will be
prepended to the provided URI (unless the appropriate value is set in options
)
Positional arguments
Keyword arguments
Settings for how the registration should be done. This may vary between WAMP servers
Register a callback for a WAMP URI
NOTE: The library will try to forward as much data as possible from the error
thrown by the {@link handler} function to the caller via the kwargs
. Make sure that the
errors do not contain any sensitive information.
The URI to register for.
If the uriBase
options was defined when opening the connection then uriBase
will be
prepended to the provided URI (unless the appropriate value is set in options
)
The callback function that will handle invocations for this uri
Settings for how the registration should be done. This may vary across WAMP servers
The registration ID (useful for unregistering)
Subscribe to publish events on a given WAMP URI.
If a subscription already exists for a given subscription ID then all subscription handlers will get called when an event occurs on the subscription ID.
The URI to subscribe to
If the uriBase
options was defined when opening the connection then uriBase
will be
prepended to the provided URI (unless the appropriate value is set in options
)
The callback function that will handle subscription events for this uri
Settings for how the subscription should be done. This may vary across WAMP servers
The subscription ID (useful for unsubscribing)
Unregister an existing registration
The registration ID returned by register()
Unsubscribe existing subscriptions given a subscription ID and handler function.
The subscription data returned by subscribe()
Multiple subscriptions can have the same ID if the same client subscribes
to the same URI. Set this to true
if you would like to unsubscribe all existing subscriptions
for this client for the given subscription ID.
Generated using TypeDoc
Call a WAMP URI and get its result