Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (23 sloc) 790 Bytes
package standup.websocket
import org.java_websocket.client.WebSocketClient
import org.java_websocket.handshake.ServerHandshake
import java.util.concurrent.LinkedBlockingQueue
* Adapted from
class TestWebSocketClient extends WebSocketClient {
final LinkedBlockingQueue<String> received = new LinkedBlockingQueue<String>()
TestWebSocketClient(URI serverURI) {
void onOpen(ServerHandshake handshakeData) { }
void onMessage(String message) {
received.put message
void onClose(int code, String reason, boolean remote) { }
void onError(Exception ex) { }
You can’t perform that action at this time.