Skip to content

v57/channel

Repository files navigation

Containerization logo  channel

Powerful and lightweight communication built for modern language. Run websocket server, client and even use it inside your process to communicate with different parts of your apps. It supports async and AsyncIterator out of the box.

Installation

bun add v57/channel

Usage

// Server
import { Channel } from 'channel/server'
new Channel().post('hello', () => 'world').listen(8080)
// Client
import { Channel } from 'channel/client'
const client = new Channel().connect(8080)
const response = await client.send('hello')
console.log(response)

About

Distributed Communication Protocol

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors