use of org.qiunet.flash.handler.context.sender.IChannelMessageSender in project DuoDuo by qiunet.
the class TestWebsocketBootstrap method testProtobufWebSocket.
@Test
public void testProtobufWebSocket() throws InterruptedException {
LoadBadWordEventData.valueOf(new DefaultBadWord(Lists.newArrayList("毛泽东"))).fireEventHandler();
text = "test [testProtobufWebSocket]";
IChannelMessageSender client = NettyWebSocketClient.create(WebSocketClientParams.custom().setAddress("localhost", port).build(), new ResponseTrigger());
WsPbLoginRequest request = WsPbLoginRequest.valueOf(text, text, 11);
latch = new CountDownLatch(1);
client.sendMessage(request);
latch.await();
}
Aggregations