Skip to main content

SSE

HTTP SSE sink sends events to all subscribers within the GDN only.

SSE Sink Syntax

CREATE SINK <name> WITH (type="sse-server", server.port="<INT>", server.path="<STRING>", worker.count="<INT>", headers="<STRING>");

SSE Sink Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
server.portThe listening port of the SSE server to which clients must connect to receive events.INTNoNo
server.pathThe listening path of the SSE server to which clients must connect to receive events.STRINGYesNo
worker.countThe number of active worker threads to serve the incoming events .1INTYesNo
headersHTTP request headers in format.STRINGYesNo

SSE Sink Example

CREATE SINK  PublishStream WITH (type='sse-server', map.type="json", server.port='8020', server.path='testsse') (param1 string);