# File lib/websocket/frame/data.rb, line 13 def set_mask raise "Too short" if bytesize < 4 # TODO - change @masking_key = self[0..3].bytes.to_a end