public interface SockJSHandler extends Handler<RoutingContext>
We currently support version 0.3.3 of the SockJS protocol, which can be found in this tag:
| Modifier and Type | Method and Description | 
|---|---|
default Router | 
bridge(BridgeOptions bridgeOptions)
Deprecated.  
 | 
default Router | 
bridge(BridgeOptions bridgeOptions,
      Handler<BridgeEvent> bridgeEventHandler)
Deprecated.  
 | 
Router | 
bridge(SockJSBridgeOptions bridgeOptions)
Bridge the SockJS handler to the Vert.x event bus. 
 | 
Router | 
bridge(SockJSBridgeOptions bridgeOptions,
      Handler<BridgeEvent> bridgeEventHandler)
Like  
bridge(SockJSBridgeOptions) but specifying a handler
 that will receive bridge events. | 
static SockJSHandler | 
create(Vertx vertx)
Create a SockJS handler 
 | 
static SockJSHandler | 
create(Vertx vertx,
      SockJSHandlerOptions options)
Create a SockJS handler 
 | 
void | 
handle(RoutingContext routingContext)
Deprecated. 
 
mount the router as a sub-router instead. This method will not properly handle errors. 
 | 
Router | 
socketHandler(Handler<SockJSSocket> handler)
Set a SockJS socket handler. 
 | 
static SockJSHandler create(Vertx vertx)
vertx - the Vert.x instancestatic SockJSHandler create(Vertx vertx, SockJSHandlerOptions options)
vertx - the Vert.x instanceoptions - options to configure the handlerRouter socketHandler(Handler<SockJSSocket> handler)
handler - the handlerRouter bridge(SockJSBridgeOptions bridgeOptions)
bridgeOptions - options to configure the bridge with@Deprecated default Router bridge(BridgeOptions bridgeOptions)
Router bridge(SockJSBridgeOptions bridgeOptions, Handler<BridgeEvent> bridgeEventHandler)
bridge(SockJSBridgeOptions) but specifying a handler
 that will receive bridge events.bridgeOptions - options to configure the bridge withbridgeEventHandler - handler to receive bridge events@Deprecated default Router bridge(BridgeOptions bridgeOptions, Handler<BridgeEvent> bridgeEventHandler)
@Deprecated void handle(RoutingContext routingContext)
Handlerhandle in interface Handler<RoutingContext>routingContext - the rounting contextCopyright © 2020 Eclipse. All rights reserved.