l.addListener(new RoomListener(nc));
l.addListener(new ServerListener(nc));
l.addListener(new UserListener(nc));
l.addListener(new MessageListener(nc));
l.addListener(new ScriptListener(nc));
l.addListener(new DisconnectListener(nc));
// connecting to server
try {
attemptToConnect(cs);
} catch (Exception e) {
Logger.getLogger("log.error").error(