Skip to main content

Socket.IO server for Deno

· One min read
Damien Arrachequesne

Hello everyone!

I'm happy to announce that Socket.IO is now compatible with Deno, which is a runtime for JavaScript and TypeScript written in Rust.


import { serve } from "";
import { Server } from "";

const io = new Server();

io.on("connection", (socket) => {
console.log(`socket ${} connected`);

socket.emit("hello", "world");

socket.on("disconnect", (reason) => {
console.log(`socket ${} disconnected due to ${reason}`);

await serve(io.handler(), {
port: 3000,

And then run with:

$ deno run --allow-net index.ts

The API is very similar to the one exposed by the Node.js implementation.

Next steps:

  • client implementation
  • compatibility with the Node.js ecosystem (msgpack parser, adapters, admin UI, ...)

Feedback is welcome!