Skip to content

deno-libs/rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpc

nest badge

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

Features

  • No dependencies
  • Typed parameters

Example

import { App } from 'https://deno.land/x/rpc/app.ts'

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