imToken v2.9.3版本的 MD5 值为:42af1a08a3f01f69d2f3782d81007b3c
以下内容为反编译后的 SimpleWebSocket.java 源代码,内容仅作参考
package com.pusher.client.example;
import java.net.URI;
import java.net.URISyntaxException;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;
public class SimpleWebSocket extends WebSocketClient {
public static void main(String[] strArr) throws URISyntaxException {
new SimpleWebSocket();
}
public SimpleWebSocket() throws URISyntaxException {
super(new URI("ws://ws.pusherapp.com/app/387954142406c3c9cc13?protocol=6&client=js&version=0.1.2&flash=false"));
System.out.println("SimpleWebSocket");
connect();
}
@Override
public void onOpen(ServerHandshake serverHandshake) {
System.out.println("onOpen");
}
@Override
public void onMessage(String str) {
System.out.println("onMessage: " + str);
}
@Override
public void onClose(int i, String str, boolean z) {
System.out.println("onClose");
}
@Override
public void onError(Exception exc) {
System.out.println("onError");
}
}