Examples of OutputWampEventMessage


Examples of com.github.ghetolay.jwamp.message.output.OutputWampEventMessage

  //TODO new publish
  public void onPublish(String sessionId, WampPublishMessage wampPublishMessage) throws SerializationException {
    EventAction e = eventMapping.getAction(wampPublishMessage.getTopicId());
    if(e != null){
      OutputWampEventMessage msg = new OutputWampEventMessage();
      msg.setTopicId(wampPublishMessage.getTopicId());
      msg.setEvent( wampPublishMessage.getEvent() );
     
      //e.publishTo think about it
      List<String> publishList = e.publishTo( getPublishList(e, sessionId, wampPublishMessage), wampPublishMessage, msg);
      if(publishList != null)
        for(String s : publishList)
View Full Code Here

Examples of com.github.ghetolay.jwamp.message.output.OutputWampEventMessage

   
    return res; 
  }
  
  public void sendEvent(String sessionId, String eventId, Object event) throws SerializationException{   
    OutputWampEventMessage msg = new OutputWampEventMessage();
    msg.setTopicId(eventId);
    msg.setEvent(event);
     
    sendEvent(sessionId, msg);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.