cd examples/subscription
./start.sh
Then, open http://localhost:4000 in browser.
Subscription example:
subscription {
serverStreaming(request:{
names:["Rust","ProtoBuf","GraphQL"]
}){
message
}
}
Result:
{
"data": {
"serverStreaming": {
"message": "Hello Rust!"
}
}
}
{
"data": {
"serverStreaming": {
"message": "Hello ProtoBuf!"
}
}
}
{
"data": {
"serverStreaming": {
"message": "Hello GraphQL!"
}
}
}