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

no type hierarchy

no supertypes hierarchy

no subtypes hierarchy

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
handleAuthoriseshared formal Boolean handleAuthorise(Object message, String sessionID, Deferred<Boolean> handler)

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

Return true if you wish to override authorisation

Parameters:
  • message

    The auth message

  • sessionID

    The session ID

  • handler

    call this when authorisation is complete

handlePostRegistershared formal void handlePostRegister(SockJSSocket sock, String address)

Called after client registers a handler

Parameters:
  • sock

    The socket

  • address

    The address

handlePreRegistershared formal Boolean handlePreRegister(SockJSSocket sock, String address)

Called before client registers a handler

Return true to let the registration occur, false otherwise

Parameters:
  • sock

    The socket

  • address

    The address

handleSendOrPubshared formal Boolean handleSendOrPub(SockJSSocket sock, Boolean send, Object msg, String address)

Client is sending or publishing on the socket

Parameters:
  • 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

handleSocketClosedshared formal void handleSocketClosed(SockJSSocket sock)

The socket has been closed

Parameters:
  • sock

    The socket

handleSocketCreatedshared formal Boolean handleSocketCreated(SockJSSocket sock)

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.

Return true to accept the socket, false to reject it

Parameters:
  • sock

    sock The socket

handleUnregistershared formal Boolean handleUnregister(SockJSSocket sock, String address)

Client is unregistering a handler

Parameters:
  • sock

    The socket

  • address

    The address

Inherited Methods
Methods inherited from: Object
equals