Advanced Guides
Websockets
Websockets enable dynamic communication between web pages and the Autonomi extension. This feature is supported in both Endpoints Mode and Local Mode.
What Are Websockets?
Websockets are a real-time communication protocol that allows persistent, bi-directional data exchange between a client (e.g., a web page) and a server.
Unlike traditional HTTP requests, which are single-use, Websockets maintain an open connection—enabling fast, low-latency communication ideal for dynamic applications.
Websockets in the Local Client
The Autonomi local client includes built-in Websocket support. This facilitates seamless communication between:
- The webpage
- The Autonomi extension
- The local client application
Benefits of Websockets
- Clearnet integration: Standard web pages can request and display Autonomi network content without reloading.
- Interactive features: Enables dynamic Autonomi-powered components, such as forms and buttons, to interact directly with network resources.
- Content enhancement: Supports automatic replacement of Autonomi shortcodes with live content.
- Future support for uploads: Planned features include upload functionality via Websockets, extending Autonomi interactivity even further.
Websockets provide the technical foundation for bridging traditional web applications with the decentralized Autonomi network—ensuring responsive and interactive experiences.