public class VertxWebsocketHost extends Object
| Constructor and Description |
|---|
VertxWebsocketHost(VertxWebsocketHostConfiguration websocketHostConfiguration,
VertxWebsocketHostKey key) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(VertxWebsocketConsumer consumer)
Sets up a Vert.x route and handler for the WebSocket path specified by the consumer configuration
|
void |
disconnect(String path)
Removes the Vert.x route and handler for the WebSocket path specified by the consumer configuration
|
Map<String,io.vertx.core.http.ServerWebSocket> |
getConnectedPeers()
Gets all WebSocket peers connected to the Vert.x HTTP sever together with their associated connection key
|
int |
getPort()
Gets the port that the server is bound to.
|
void |
start()
Starts a Vert.x HTTP server to host the WebSocket router
|
void |
stop()
Starts a previously started Vert.x HTTP server
|
public VertxWebsocketHost(VertxWebsocketHostConfiguration websocketHostConfiguration, VertxWebsocketHostKey key)
public void connect(VertxWebsocketConsumer consumer)
public void disconnect(String path)
public void start()
throws Exception
Exceptionpublic void stop()
throws ExecutionException,
InterruptedException
public Map<String,io.vertx.core.http.ServerWebSocket> getConnectedPeers()
public int getPort()
Apache Camel