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) ⇒ Socket
constructor
A new instance of Socket.
- #send(message) ⇒ Object
Constructor Details
#initialize(server, socket) ⇒ Socket
Returns a new instance of Socket.
5 6 7 8 |
# File 'lib/faye/protocol/socket.rb', line 5 def initialize(server, socket) @server = server @socket = socket end |
Instance Method Details
#close ⇒ Object
16 17 18 |
# File 'lib/faye/protocol/socket.rb', line 16 def close @socket.close end |