URL of WebSocket endpoint or undefined to guess it.
search
part of request url or undefined to take from
window.location.search
.
Specify an analysis id or undefined to have one generated. The connection will try to connect to a previously created analysis with that id.
Create a Connection and immediately connect to it.
This is a shorthand for
new Connection(wsUrl, requestArgs, analysisId).connect();
Use this function in tests where you know that connect()
will not trigger
any callbacks that you should listen to. In regular code, it is better
to define all on
callbacks before calling connect()
and so this
shorthand should not be used.
URL of WebSocket endpoint or undefined to guess it.
search
part of request url or undefined to take from
window.location.search
.
Specify an analysis id or undefined to have one generated. The connection will try to connect to a previously created analysis with that id.
Called when connection is established.
Generated using TypeDoc
Attach to a backend.
Similar to connect. Instead of a callback parameter, it returns a Promise that resolves to a Connection instance once the connection is established.