Interface WebsocketClientWriter
- All Known Subinterfaces:
SpincastWebsocketClientWriter
public interface WebsocketClientWriter
A Websocket client writer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Closes the WebSocket connection.void
sendMessage
(byte[] message) Sends a binary message to the endpointvoid
sendMessage
(String message) Sends a text message to the endpoint.
-
Method Details
-
sendMessage
Sends a text message to the endpoint. -
sendMessage
void sendMessage(byte[] message) Sends a binary message to the endpoint -
closeConnection
void closeConnection()Closes the WebSocket connection.
-