Skip to content
deno-libsPublic

About

📡 JSONRPC server router for Deno

Topics

Resources

Stars

23 stars

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

rpc

JSONRPC server router for Deno using native WebSocket, based on jsonrpc.

Features

  • No dependencies
  • Typed parameters

Example

import { App } from 'jsr:@deno-libs/rpc'

const app = new App()

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

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

See client-server example here

About

📡 JSONRPC server router for Deno

Topics

Resources

Stars

23 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages