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.
bun add v57/channel
// 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)