Skip to content

IExtension

Interface for websocket-extension implementations.

Methods:

Void AddNegotiation(HTTPRequest)

This is the first pass: here we can add headers to the request to initiate an extension negotiation.

Boolean ParseNegotiation(HTTPResponse)

If the websocket upgrade succeded it will call this function to be able to parse the server's negotiation response. Inside this function the IsEnabled should be set.

BufferSegment Decode(Byte, BufferSegment)

This function can be used the decode the server-sent data.

Comments