public interface SockJSHandler extends io.vertx.core.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,
io.vertx.core.Handler<BridgeEvent> bridgeEventHandler)
Like
bridge(BridgeOptions) but specifying a handler
that will receive bridge events. |
static SockJSHandler |
create(io.vertx.core.Vertx vertx)
Create a SockJS handler
|
static SockJSHandler |
create(io.vertx.core.Vertx vertx,
SockJSHandlerOptions options)
Create a SockJS handler
|
static void |
installTestApplications(Router router,
io.vertx.core.Vertx vertx)
Install SockJS test applications on a router - used when running the SockJS test suite
|
SockJSHandler |
socketHandler(io.vertx.core.Handler<SockJSSocket> handler)
Set a SockJS socket handler.
|
static SockJSHandler create(io.vertx.core.Vertx vertx)
vertx
- the Vert.x instancestatic SockJSHandler create(io.vertx.core.Vertx vertx, SockJSHandlerOptions options)
vertx
- the Vert.x instanceoptions
- options to configure the handlerstatic void installTestApplications(Router router, io.vertx.core.Vertx vertx)
router
- the router to install onvertx
- the Vert.x instanceSockJSHandler socketHandler(io.vertx.core.Handler<SockJSSocket> handler)
handler
- the handlerSockJSHandler bridge(BridgeOptions bridgeOptions)
bridgeOptions
- options to configure the bridge withSockJSHandler bridge(BridgeOptions bridgeOptions, io.vertx.core.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 © 2018 Eclipse. All rights reserved.