Package dev.enola.common.net.websocket
Class WebSocketClient
java.lang.Object
dev.enola.common.net.websocket.WebSocketClient
- All Implemented Interfaces:
AutoCloseable
A simple WebSocket client which only depends on the JDK and no external libraries, suitable e.g.
for testing. Consider using a more feature-complete library for production code; e.g.
WebSocketClient or similar.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WebSocketClient
-
WebSocketClient
-
-
Method Details
-
send
Sends a message and waits for the response.- Throws:
Exception
-
close
- Specified by:
closein interfaceAutoCloseable
-