8000 GitHub - nomtomnom/sono.io: Real-time Communication Library for Deno (WebSockets & WebRTC) · GitHub
[go: up one dir, main page]

Skip to content

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

sono.io

A real-time communication module for Deno.

Features

  • A WebSocket server module for the Deno runtime that accepts WebSocket connections
  • A Websocket client module for to interface with the sono server-side module with myriad built-in methods for peer-to-peer communication.
  • A WebRTC module for Deno (experimental)

Documentation

Find the full documentation of Sono.io here.

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';

Authors

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0