Socket.IO is an event-driven library for real-time web applications.
It enables real-time, bi-directional communication between web clients and servers. It consists of two components: a client, and a server. Both components have a nearly identical API.
Wiki English | |
Original author(s) | Guillermo Rauch |
---|---|
Developer(s) | Automattic |
Stable release | 4.7.2 / August 2, 2023 |
Repository | |
Written in | JavaScript |
Operating system | Cross-platform |
Type | Event-driven networking |
License | MIT License |
Website | socket |
Socket.IO is also a protocol, where different complying implementations of the protocol can communicate with each other. The main implementation consists of two parts: a client that runs in the browser and a server for Node.js. Apart from the main implementation, there are multiple implementations, for example, the official Deno (JavaScript), C++, Java , and Swift servers.
Socket.IO primarily uses the WebSocket protocol with polling as a fallback option, while providing the same interface. Although it can be used simply as a wrapper for WebSockets, it provides many additional features such as heartbeats and timeouts.
It can be installed with the Node Package Manager (NPM).
This article uses material from the Wikipedia English article Socket.IO, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). Content is available under CC BY-SA 4.0 unless otherwise noted. Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki English (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.