Method: IRCConnection.add_IO_socket

Defined in:
lib/vendor/irc/lib/IRCConnection.rb

.add_IO_socket(socket, &event_generator) ⇒ Object

Adds a new socket to the list of sockets to monitor for new data.



123
124
125
126
# File 'lib/vendor/irc/lib/IRCConnection.rb', line 123

def IRCConnection.add_IO_socket(socket, &event_generator)
  @@readsockets.push(socket)
  @@events[socket.object_id.to_i] = event_generator
end