Class WebSocket::Frame::Data
In: lib/websocket/frame/data.rb
Parent: String

Methods

<<   convert_args   getbytes   mask   new   set_mask   unset_mask  

Public Class methods

Public Instance methods

Convert all arguments to ASCII-8BIT for easier traversing

Extract `count` bytes starting from `start_index` and unmask it if needed.

Mask whole payload using mask key

Extract mask from 4 first bytes according to spec

Remove mask flag - it will still be present in payload

[Validate]