socket.io

socket.io is a JavaScript library for real-time web applications. It enables real-time, bi-directional communication between web clients and servers. It uses technologies like WebSockets to facilitate this communication under the Node.js environment.

Latest Ver 4.8.1
Homepage
Github
0
61,966
📢 socket.io is a JavaScript library supporting real-time communication between web clients and servers.
License: MIT
https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.8.1/socket.io.esm.min.js
https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.8.1/socket.io.js
https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.8.1/socket.io.min.js
https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.8.1/socket.io.msgpack.min.js
https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.8.1/socket.io.esm.min.js.map
https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.8.1/socket.io.js.map
https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.8.1/socket.io.min.js.map
https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.8.1/socket.io.msgpack.min.js.map

Sample Code

⚠️ Some code, including import statements, may not run properly on jsFiddle. If it fails to execute, please copy the code and try it in your own environment.
📄 HTML
<div id='status'>Connecting...</div>

🧩 External JS
<script src="https://cdn.socket.io/4.0.0/socket.io.js"></script>

⚙️ JavaScript
var socket = io();
socket.on('connect', function() {
  document.getElementById('status').innerHTML = 'Connected!';
});
⚡ Top Tools for Developers
Text Compare

Text Comparison

Easily spot the differences between two texts.

Favicon Generator

Favicon Generator

Quickly and easily generate favicons.

Lorem Ipsum Generator

Lorem Ipsum Generator

Generate placeholder text for your designs.

Character Counter

Character Counter

Check character and word count in real time.

SRT ↔ SMI

SRT ↔ SMI Converter

Easily convert between subtitle formats.

Text Extract(OCR)

Image Text Extractor

Automatically extract text from images.