# File lib/faye/websocket/hybi_parser.rb, line 45 def initialize(web_socket, options = {}) reset @socket = web_socket @reader = StreamReader.new @stage = 0 @masking = options[:masking] @protocols = options[:protocols] @protocols = @protocols.split(/\s*,\s*/) if String === @protocols @ping_callbacks = {} end