Multipart HTTP Protocol is a method for delivering incremental responses over HTTP. It allows you to receive subscription responses in clearly defined chunks, keeping an open connection throughout.
Accept: multipart/mixed
on a GraphQL subscription POST request. Try out the following example:
EventSource
. Here’s a full example using JavaScript’s fetch
API with the ReadableStream
interface. You can also copy paste this example in the Developer Console to test it.