UNPKG

@nuralogix.ai/dfx-api-client

Version:

DeepAffex API JavaScript Client Library

20 lines (14 loc) 698 B
[@nuralogix.ai/dfx-api-client](../../API/index.md) / WebSocket ## WebSocket The [WebSocket API](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API) is an advanced technology that makes it possible to open a two-way interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply. * Events * [onmessage](events.md#onmessage) * [onclose](events.md#onclose) * [onerror](events.md#onerror) * Methods * [connect](methods.md#connect) * [disconnect](methods.md#disconnect) * [sendMessage](methods.md#sendmessage)