Home > @holochain/client > WsClient
A WebSocket client which can make requests and receive responses, as well as send and receive signals.
Uses Holochain's WireMessage for communication.
Signature:
export declare class WsClient extends Emittery
Extends: Emittery
Constructor |
Modifiers |
Description |
---|---|---|
Constructs a new instance of the |
Property |
Modifiers |
Type |
Description |
---|---|---|---|
IsoWebSocket | |||
URL | undefined |
Method |
Modifiers |
Description |
---|---|---|
Authenticate the client with the conductor. This is only relevant for app websockets. | ||
Close the websocket connection. | ||
|
Instance factory for creating WsClients. | |
Sends data as a signal. | ||
Send requests to the connected websocket. |