vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Function IncomingWebSocketMessage.skipFrame

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

bool skipFrame() @safe;

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.


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


Jan Krüger


© 2012-2014 RejectedSoftware e.K.


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.