# SocketIO

{% hint style="warning" %}
Socket.IO is **NOT** a WebSocket implementation.
{% endhint %}

{% embed url="<https://socket.io/docs/v4/>" %}

Socket.IO enables real-time, bidirectional communication between clients and servers using WebSockets or HTTP long-polling as fallbacks. It allows messages to be exchanged instantly without the need for continuous client polling.

With Socket.IO, connections are established and maintained between the server and multiple clients, enabling real-time updates.

Socket.IO supports rooms and namespaces for organizing communication, and it ensures compatibility across different browsers and network conditions by managing fallbacks automatically.

To get started with implementing Socket.IO, you can refer to the official Socket.IO Client API documentation. This guide provides essential details on how to establish connections, subscribe to events, and manage real-time communication efficiently.

{% embed url="<https://socket.io/docs/v4/client-api/>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.one-record.fr/one-record/notification/socketio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
