Optional
listenersOptional listeners that can be immediately attached to the WebSocket instance instead of requiring externally adding them.
Optional
pathParameters for WebSocket paths that need them, like '/my-path/:param1/:param2'
.
Optional
protocolsA list of WebSocket protocols. This is the standard built-in argument for the WebSocket
constructor.
Optional
searchOptional
webA custom WebSocket
constructor. Useful for debugging or unit testing. This can safely be
omitted to use the default JavaScript built-in global WebSocket
class.
Generic connection parameters for
connectWebSocket
.Package
@rest-vir/define-service