Opens a websocket, using the given backend-specific handler.
Opens a websocket, using the given backend-specific handler.
If the connection doesn't result in a websocket being opened, a failed effect is
returned, or an exception is thrown (depending on F
).
The effect wrapper for responses.
The effect wrapper for responses. Allows writing wrapper backends, which map/flatMap over the return value of send and openWebsocket.
The type constructor in which responses are wrapped. E.g.
Identity
for synchronous backends,Future
for asynchronous backends.The type of streams that are supported by the backend.
Nothing
, if streaming requests/responses is not supported by this backend.The type of websocket handlers, that are supported by this backend. The handler is parametrised by the value that is being returned when the websocket is established.
NothingT
, if websockets are not supported.