rpc

JSONRPC server implementation with native WebSocket, based on jsonrpc.

Example

import { App } from 'https://x.nest.land/rpc/mod.ts'

const app = new App()

app.method('hello', (params) => {
  return `Hello ${params[0]}`
})

app.listen({ port: 8080, hostname: '0.0.0.0' })