webrpc-sse

module
v0.0.0-...-313e323 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2022 License: MIT

README

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.

Directories

Path Synopsis
webrpc-sse v1.0.0 5a7eee5a229adbbd13ff1ca380f435267170d395 -- This file has been generated by https://github.com/webrpc/webrpc using gen/golang Do not edit by hand.
webrpc-sse v1.0.0 5a7eee5a229adbbd13ff1ca380f435267170d395 -- This file has been generated by https://github.com/webrpc/webrpc using gen/golang Do not edit by hand.
webrpc-sse v1.0.0 5a7eee5a229adbbd13ff1ca380f435267170d395 -- This file has been generated by https://github.com/webrpc/webrpc using gen/golang Do not edit by hand.
webrpc-sse v1.0.0 5a7eee5a229adbbd13ff1ca380f435267170d395 -- This file has been generated by https://github.com/webrpc/webrpc using gen/golang Do not edit by hand.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL