This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.github.nkzawa.socketio.client.Manager; | |
import com.github.nkzawa.socketio.client.Socket; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
public class SocketServerStub { | |
protected Socket socket = new SocketStub(new Manager(), null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.github.nkzawa.socketio.client.Manager; | |
import com.github.nkzawa.socketio.client.Socket; | |
public class SocketStub extends Socket { | |
private boolean connected = false; | |
public SocketStub(Manager io, String nsp) { | |
super(io, nsp); | |
} |