Attributes
Includes Deno configuration
Repository
Current version released
a year ago
Versions
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