SseServerTransport
class SseServerTransport(endpoint: String, session: ServerSSESession, maxRequestBodySize: Long = DEFAULT_MAX_REQUEST_BODY_SIZE) : AbstractTransport(source)
Server transport for SSE: this will send messages over an SSE connection and receive messages from HTTP POST requests.
Creates a new SSE server transport, which will direct the client to POST messages to the relative or absolute URL identified by _endpoint.
Parameters
endpoint
relative or absolute URL the client will POST messages to
session
active SSE session used to deliver server-to-client events
maxRequestBodySize
maximum allowed size, in bytes, of an incoming POST body; larger requests are rejected with 413 Payload Too Large without being buffered in full. Defaults to 4 MiB.
Constructors
Link copied to clipboard
constructor(endpoint: String, session: ServerSSESession, maxRequestBodySize: Long = DEFAULT_MAX_REQUEST_BODY_SIZE)