golang-cz / webrpc-sse

WebRPC SSE discovery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebRPC SSE discovery playground

Run Go server at http://localhost:4242 with:

go run ./server-go

CURL client

Send message:

curl -X POST -H 'Content-Type: application/json' --data '{"author": "Vojtech", "msg": "Hello there!"}' http://localhost:4242/rpc/Chat/SendMessage

Subscribe to all messages:

curl -N -X GET -H 'Accept: text/event-stream' http://localhost:4242/rpc/Chat/SubscribeMessages

Go client

go run ./client-go

Joins chat. Send a message by typing and hitting enter.

About

WebRPC SSE discovery

License:MIT License


Languages

Language:Go 77.6%Language:TypeScript 14.9%Language:CSS 3.4%Language:JavaScript 2.5%Language:Shell 0.8%Language:HTML 0.8%