Class DirectWsClient
java.lang.Object
io.helidon.nima.testing.junit5.websocket.DirectWsClient
A client for WebSocket, that directly invokes routing (and bypasses network).
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.nima.websocket.client.WsClient
WsClient.Builder -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(String path, WsListener listener) Starts a new WebSocket connection and runs it in a new virtual thread.voidconnect(URI uri, WsListener clientListener) Starts a new WebSocket connection and runs it in a new virtual thread.static DirectWsClientCreate a new client based on the provided routing.
-
Method Details
-
create
Create a new client based on the provided routing.- Parameters:
routing- used to discover route to handle a new connection- Returns:
- a new instance for the provided routing
-
connect
Description copied from interface:WsClientStarts a new WebSocket connection and runs it in a new virtual thread. This method returns when the connection is established and a newWsSessionis started. -
connect
Description copied from interface:WsClientStarts a new WebSocket connection and runs it in a new virtual thread. This method returns when the connection is established and a newWsSessionis started.
-