GithubHelp home page GithubHelp logo

oslabs-beta / sono.land Goto Github PK

View Code? Open in Web Editor NEW
147.0 6.0 24.0 4.01 MB

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

Home Page: https://sono.land

TypeScript 56.26% JavaScript 43.74%

sono.land's Introduction

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/[email protected]/mod.ts';

  const sono = new Sono();

client.js:

  import { SonoClient } from 'https://deno.land/x/[email protected]/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/[email protected]/mod.ts';

Contact the team!

sono.land's People

Contributors

a-creation avatar chris-paul-ejercito avatar davidjinsuh90 avatar johnl64 avatar vin-vu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sono.land's Issues

how do i use sono with oak

i made below code to make sono connection with oak

import { SONO , OAK } from './Dependencies.ts'
const { Application } = OAK
const { Sono } = SONO
const app = new Application()
const sono = new Sono()
app.listen({ port: parseInt(Deno.env.get('PORT')!) })
app.use((context, next) => {
    if (context.request.method == 'GET' && context.request.url.pathname == '/sono') {
        sono.connect(context.request.originalRequest, () => {
            sono.emit('new client connected')
        })
    } else { next() }
})

./Dependencies.ts

import * as SONO from 'https://deno.land/x/[email protected]/mod.ts'
import * as OAK from 'https://deno.land/x/[email protected]/mod.ts'
export { SONO, OAK }

but it wont work because oak's context.request.originalRequest does not includes bufWriter and bufReader

Server side WebRTC?

It would be pretty awesome to be able to start a server that shows a Webcam (and audio) plugged into a raspberry pi for example and makes it available to WebRTC clients like a browser (or even a deno server instance).

Is this in scope? 😏

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.