sono.land
A real-time communication module for Deno
Explore the docs
Medium Article
Β·
Deno Module
Β·
Request Feature
Features
- π€ WebRTC for P2P connections
- πΈ Video and π€ Audio implementation
- π¨βπ©βπ§βπ¦Exhibit Many to Many WebRTC connectivity utilizing the Mesh system
- π WebSocket for clients to server connections
- π¬ Chatroom demonstration to display WebSocket connections
- πΊ Multiple channels for different discussions
- π£ Broadcast messages to everyone in the channel
- π« Direct message to a single client
- π Grab a list of all clients in a specified channel
- π₯ and much more
Demo
Documentation
Find the full documentation of sono.land
Usage & Examples
server.ts:
import { Sono } from 'https://deno.land/x/sono@v1.1/mod.ts';
const sono = new Sono();
Deno.serve(async (req: Request) => {
return sono.connect(req);
});
client.js:
import { SonoClient } from 'https://deno.land/x/sono@v1.1/src/sonoClient.js';
const sono = new SonoClient('ws://localhost:8000/ws');
sono.on('hello', (event) => {
console.log(event, 'world')
})
Installation
Import directly from deno.land / github.
deps.ts:
import { Sono } from 'https://deno.land/x/sono@v1.1/mod.ts';