vertx / io.vertx.reactivex.ext.web.handler.sockjs / SockJSHandler

SockJSHandler

open class SockJSHandler : Handler<RoutingContext>

A handler that allows you to handle SockJS connections from clients.

We currently support version 0.3.3 of the SockJS protocol, which can be found in this tag:

NOTE: This class has been automatically generated from the io.vertx.ext.web.handler.sockjs.SockJSHandler non RX-ified interface using Vert.x codegen.

Constructors

<init>

SockJSHandler(delegate: SockJSHandler)

Properties

__TYPE_ARG

static val __TYPE_ARG: TypeArg<SockJSHandler>

Functions

bridge

open fun bridge(bridgeOptions: BridgeOptions): SockJSHandler

Bridge the SockJS handler to the Vert.x event bus. This basically installs a built-in SockJS socket handler which takes SockJS traffic and bridges it to the event bus, thus allowing you to extend the server-side Vert.x event bus to browsers

open fun bridge(bridgeOptions: BridgeOptions, bridgeEventHandler: Handler<BridgeEvent>): SockJSHandler

Like io.vertx.reactivex.ext.web.handler.sockjs.SockJSHandler#bridge but specifying a handler that will receive bridge events.

create

open static fun create(vertx: Vertx): SockJSHandler
open static fun create(vertx: Vertx, options: SockJSHandlerOptions): SockJSHandler

Create a SockJS handler

equals

open fun equals(other: Any?): Boolean

getDelegate

open fun getDelegate(): SockJSHandler

handle

open fun handle(arg0: RoutingContext): Unit

hashCode

open fun hashCode(): Int

installTestApplications

open static fun installTestApplications(router: Router, vertx: Vertx): Unit

Install SockJS test applications on a router - used when running the SockJS test suite

newInstance

open static fun newInstance(arg: SockJSHandler): SockJSHandler

socketHandler

open fun socketHandler(handler: Handler<SockJSSocket>): SockJSHandler

Set a SockJS socket handler. This handler will be called with a SockJS socket whenever a SockJS connection is made from a client

toString

open fun toString(): String