class Goliath::Connection
Attributes
socket_stream[RW]
Public Instance Methods
receive_data(data)
click to toggle source
# File lib/faye/adapters/goliath.rb, line 5 def receive_data(data) if @serving == :websocket socket_stream.receive(data) if socket_stream else goliath_receive_data(data) socket_stream.receive(@parser.upgrade_data) if socket_stream @serving = :websocket if @api.websocket? end end
Also aliased as: goliath_receive_data
unbind()
click to toggle source
Calls superclass method
# File lib/faye/adapters/goliath.rb, line 15 def unbind super ensure socket_stream.fail if socket_stream end