org.vertx.scala.core.sockjs

EventBusBridgeHook

final class EventBusBridgeHook extends AnyVal

A hook that you can use to receive various events on the EventBusBridge.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EventBusBridgeHook
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. val asJava: java.core.sockjs.EventBusBridgeHook

  6. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  7. def handleAuthorise(message: JsonObject, sessionID: String, handler: (AsyncResult[Boolean]) ⇒ Unit): Boolean

    Called before authorisation - you can override authorisation here if you don't want the default

    Called before authorisation - you can override authorisation here if you don't want the default

    message

    The auth message

    sessionID

    The session ID

    handler

    Handler - call this when authorisation is complete

    returns

    true if you wish to override authorisation

  8. def handlePostRegister(sock: SockJSSocket, address: String): Unit

    Called after client registers a handler

    Called after client registers a handler

    sock

    The socket

    address

    The address

  9. def handlePreRegister(sock: SockJSSocket, address: String): Boolean

    Called before client registers a handler

    Called before client registers a handler

    sock

    The socket

    address

    The address

    returns

    true to let the registration occur, false otherwise

  10. def handleSendOrPub(sock: SockJSSocket, send: Boolean, msg: JsonObject, address: String): Boolean

    Client is sending or publishing on the socket

    Client is sending or publishing on the socket

    sock

    The sock

    send

    if true it's a send else it's a publish

    msg

    The message

    address

    The address the message is being sent/published to

    returns

    true To allow the send/publish to occur, false otherwise

  11. def handleSocketClosed(sock: SockJSSocket): Unit

    The socket has been closed

    The socket has been closed

    sock

    The socket

  12. def handleSocketCreated(sock: SockJSSocket): Boolean

    Called when a new socket is created You can override this method to do things like check the origin header of a socket before accepting it

    Called when a new socket is created You can override this method to do things like check the origin header of a socket before accepting it

    sock

    The socket

    returns

    true to accept the socket, false to reject it

  13. def handleUnregister(sock: SockJSSocket, address: String): Boolean

    Client is unregistering a handler

    Client is unregistering a handler

    sock

    The socket

    address

    The address

  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def toString(): String

    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped