lib/ftw/websocket/parser.rb in ftw-0.0.25 vs lib/ftw/websocket/parser.rb in ftw-0.0.26
- old
+ new
@@ -198,10 +198,11 @@
# +-------------------------------+-------------------------------+
# | Masking-key (continued) | Payload Data |
# +-------------------------------- - - - - - - - - - - - - - - - +
@mask = get(@need)
transition(:payload, @payload_length)
+ return nil
end # def mask
# State: payload
# Read the full payload and return it.
# See: http://tools.ietf.org/html/rfc6455#section-5.3
@@ -230,11 +231,11 @@
i = 0
message.each_byte do |byte|
masked << (byte ^ mask_bytes[i % 4])
i += 1
end
- p :unmasked => masked.pack("C*"), :original => message
- return masked.pack("C*")
+ #p :unmasked => masked.pack("C*"), :original => message
+ return masked.pack("C*")
end # def unmask
public(:feed)
end # class FTW::WebSocket::Parser