Class: Faye::Server::Socket
- Inherits:
-
Object
- Object
- Faye::Server::Socket
- Defined in:
- lib/faye/protocol/socket.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(server, socket, env) ⇒ Socket
constructor
A new instance of Socket.
- #send(message) ⇒ Object
Constructor Details
#initialize(server, socket, env) ⇒ Socket
Returns a new instance of Socket.
5 6 7 8 9 |
# File 'lib/faye/protocol/socket.rb', line 5 def initialize(server, socket, env) @server = server @socket = socket @env = env end |
Instance Method Details
#close ⇒ Object
17 18 19 20 |
# File 'lib/faye/protocol/socket.rb', line 17 def close @socket.close if @socket @socket = nil end |