Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SockJSHandler

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:

Hierarchy

  • SockJSHandler

Implements

  • any

Index

Methods

bridge

  • 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

    Parameters

    Returns Router

  • Like {@link SockJSHandler#bridge} but specifying a handler that will receive bridge events.

    Parameters

    Returns Router

  • Like {@link SockJSHandler#bridge} but specifying a handler that will receive bridge events.

    Parameters

    Returns Router

handle

  • Parameters

    Returns void

socketHandler

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

    Parameters

    Returns Router

Static create

  • Create a SockJS handler

    Parameters

    • vertx: Vertx

    Returns SockJSHandler

  • Create a SockJS handler

    Parameters

    Returns SockJSHandler

Generated using TypeDoc