AdaRoseCannon / sono.land

Real-time Communication Library for Deno (WebSockets & WebRTC)

Home Page:https://sono.land

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sono.land

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

test


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();

client.js:

  import { SonoClient } from 'https://deno.land/x/sono@v1.1/src/sonoClient.js';

  const sono = new SonoClient('ws://localhost:8080/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';

Contact the team!

About

Real-time Communication Library for Deno (WebSockets & WebRTC)

https://sono.land


Languages

Language:TypeScript 56.3%Language:JavaScript 43.7%