Super simple server for Node.js

151 views
Skip to first unread message

Davyd Kohut

unread,
Nov 8, 2022, 10:16:58 AM11/8/22
to JSON-RPC
Hello!

I want to share with you very simple JSON-RPC server implementation for Node.js with HTTP and WebSockets support.

You can make it work with literally 3 lines of code:

import sepc from 'sepc';
const add = (a, b) => a + b;
sepc({ add }).listen(3000);

Source code and docs: https://github.com/kohutd/sepc

Hope you enjoy, have a nice day :)
Reply all
Reply to author
Forward
0 new messages