Get started with socket.io CDN

MIT licensed

Socket.IO: Real-time communication library for bidirectional server-client events.

Tags:
  • websockets
  • node

Stable version

Copied!

How to start using socket.io CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with socket.io CDN - cdnhub.io</title>
  <script src="https://cdn.cdnhub.io/socket.io/4.7.5/socket.io.js"></script>
  <script src="client.js"></script>
</head>
<body>
  <ul id="messages"></ul>
  <form action="">
    <input id="message-input" autocomplete="off" autofocus /><button>Send</button>
  </form>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions