IncomingWebSocketMessage.skipFrame

Retrieve the next websocket frame of the stream and discard the current one

This function is helpful if one wish to process frames by frames, or minimize memory allocation, as peek will only return the current frame data, and read requires a pre-allocated buffer.

class IncomingWebSocketMessage
@safe
bool
skipFrame
()

Return Value

Type: bool

false if the current frame is the final one, true if a new frame was read.

Meta