IRCServer¶
(c) 2013-2014 http://ircanywhere.com
Author: Rodrigo Silveira
IRCAnywhere server/server.js
- class
IRCServer.
IRCServer
()¶This is the IRC server that manages IRC client connections to ircanywhere. The IRC server can be turned off by configuration. this is a singleton and should never be instantiated more than once.
The configuration option ircServer.enable and ircServer.port will control whether this runs and what port it runs on. The default port is 6667.
Returns: void
-
IRCServer.
init
()¶ Setup server and start listening for connections.
Returns: void
-
IRCServer.
onConnect
(socket)¶ Handles new server connection. Starts a session.
Arguments: - socket (object) – Connection socket to the client
Returns: void