Package io.varhttp
Class UndertowWebSocket
java.lang.Object
io.varhttp.UndertowWebSocket
- All Implemented Interfaces:
VarWebSocket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
onReceive
(Consumer<VarWebSocketMessage> messageConsumer) void
receive
(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedTextMessage message) void
send
(VarWebSocketMessage message)
-
Constructor Details
-
UndertowWebSocket
public UndertowWebSocket(io.undertow.websockets.core.WebSocketChannel channel)
-
-
Method Details
-
receive
public void receive(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedTextMessage message) -
send
- Specified by:
send
in interfaceVarWebSocket
-
onReceive
- Specified by:
onReceive
in interfaceVarWebSocket
-
close
- Specified by:
close
in interfaceVarWebSocket
- Throws:
IOException
-