public AcknowledgeExample() throws Exception {
socket = new SocketIO();
socket.connect("http://127.0.0.1:3001/", this);
// Sends a string to the server.
socket.send(new IOAcknowledge() {
@Override
public void ack(Object... args) {
System.out.println("Server acknowledges this package.");
for(Object o : args)
System.out.println(o.toString());