vibe.d beta banner
get vibe.d
0.8.2

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.

Returns

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

Authors

Jan Krüger

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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