// register this class as listener
connection.addInputListener(new ExampleConnection());
// connect to NeuroServer
connection.connect();
// check if connection is connected
if(connection.isConnected()) {
// send hello command
connection.sendCommand(Command.HELLO);