move package name

This commit is contained in:
nkzawa
2015-08-31 03:23:03 +09:00
parent 742e824a49
commit d0039f7910
31 changed files with 60 additions and 60 deletions

View File

@@ -0,0 +1,24 @@
package io.socket.client.executions;
import com.github.nkzawa.emitter.Emitter;
import io.socket.client.IO;
import io.socket.client.Socket;
import java.net.URISyntaxException;
public class Connection {
public static void main(String[] args) throws URISyntaxException {
IO.Options options = new IO.Options();
options.forceNew = true;
final Socket socket = IO.socket("http://localhost:" + System.getenv("PORT"), options);
socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() {
@Override
public void call(Object... args) {
System.out.println("connect");
socket.close();
}
});
socket.open();
}
}