cosmo icon indicating copy to clipboard operation
cosmo copied to clipboard

feat: create subsciption over multipart

Open df-wg opened this issue 1 year ago • 0 comments
trafficstars

Motivation and Context

One of the methods that Apollo recommends using is HTTP Multipart for subscriptions, as described here and here

This PR enables the router to follow the same protocol, so that it can respond in the format:

--graphql
content-type: application/json

{}
--graphql
content-type: application/json

{"payload":{"data":{"productPriceChanged":{"name":"Croissant","price":400,"reviews":[{"score":5}]}}}}
--graphql
content-type: application/json

{"payload":{"data":{"productPriceChanged":{"name":"Croissant","price":375,"reviews":[{"score":5}]}}}}
--graphql
content-type: application/json

{"payload":{"data":{"productPriceChanged":{"name":"Croissant","price":425,"reviews":[{"score":5}]}}}}
--graphql--

TODO

df-wg avatar Sep 29 '24 19:09 df-wg