Created
June 8, 2015 20:01
-
-
Save icapurro/09d2c34c2ec8fcca1845 to your computer and use it in GitHub Desktop.
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); | |
} | |
@Override | |
public Socket connect() { | |
connected = true; | |
return this; | |
} | |
@Override | |
public boolean connected() { | |
return connected; | |
} | |
@Override | |
public Socket disconnect() { | |
connected = false; | |
return this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment