Back to project page android-sdk.
The source code is released under:
MIT License
If you think the Android project android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.relayr.websocket; //from ww w. j a v a 2 s . co m import javax.inject.Inject; import io.relayr.api.MockBackend; import io.relayr.model.WebSocketConfig; class MockWebSocketFactory extends WebSocketFactory { private final MockBackend mMockBackend; @Inject MockWebSocketFactory(MockBackend mockBackend) { mMockBackend = mockBackend; } WebSocket createWebSocket(WebSocketConfig webSocketConfig) { return new MockWebSocket(webSocketConfig, mMockBackend); } }