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 |
---|---|
SockJSHandler |
bridge(BridgeOptions bridgeOptions)
Bridge the SockJS handler to the Vert.x event bus.
|
SockJSHandler |
bridge(BridgeOptions bridgeOptions,
Handler<BridgeEvent> bridgeEventHandler)
Like
bridge(BridgeOptions) 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
|
static void |
installTestApplications(Router router,
Vertx vertx)
Install SockJS test applications on a router - used when running the SockJS test suite
|
SockJSHandler |
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 handlerstatic void installTestApplications(Router router, Vertx vertx)
router
- the router to install onvertx
- the Vert.x instanceSockJSHandler socketHandler(Handler<SockJSSocket> handler)
handler
- the handlerSockJSHandler bridge(BridgeOptions bridgeOptions)
bridgeOptions
- options to configure the bridge withSockJSHandler bridge(BridgeOptions bridgeOptions, Handler<BridgeEvent> bridgeEventHandler)
bridge(BridgeOptions)
but specifying a handler
that will receive bridge events.bridgeOptions
- options to configure the bridge withbridgeEventHandler
- handler to receive bridge eventsCopyright © 2015. All Rights Reserved.