AeroGear Netty SockJS Codec 0.11.0

org.jboss.aerogear.io.netty.handler.codec.sockjs
Interface SockJsService


public interface SockJsService

Represents the server side business application server in SockJS.


Method Summary
 SockJsConfig config()
          The SockJsConfig for this service
 void onClose()
          Will be called when the session is closed.
 void onMessage(String message)
          Will be called when a message is sent to the service.
 void onOpen(SockJsSessionContext session)
          Will be called when a new session is opened.
 

Method Detail

config

SockJsConfig config()
The SockJsConfig for this service

Returns:
SockJsConfig this services configuration.

onOpen

void onOpen(SockJsSessionContext session)
Will be called when a new session is opened.

Parameters:
session - the SockJsSessionContext which can be stored and used for sending/closing.

onMessage

void onMessage(String message)
               throws Exception
Will be called when a message is sent to the service.

Parameters:
message - the message sent from a client.
Throws:
Exception

onClose

void onClose()
Will be called when the session is closed.


AeroGear Netty SockJS Codec 0.11.0

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.