Package com.github.ghetolay.jwamp.message.output

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


  }

  public void unsubscribe(String topicId) throws IOException {
    if(topics.contains(topicId)){
      try {
        conn.sendMessage(new OutputWampUnsubscribeMessage(topicId));
      } catch (SerializationException e) {
        log.error("Serialization error on unsubscribe message");
      }

      topics.remove(topicId);
View Full Code Here


  }

  public void unsubscribeAll() throws IOException{
    for(Iterator<SubSet> it = topics.iterator(); it.hasNext();){
      try {
        conn.sendMessage(new OutputWampUnsubscribeMessage( it.next().sub.getTopicId() ));
      } catch (SerializationException e) {
        log.error("Serialization error on unsubscribe message");
      }
      it.remove();
    }
View Full Code Here

TOP

Related Classes of com.github.ghetolay.jwamp.message.output.OutputWampUnsubscribeMessage

Copyright © 2018 www.massapicom. 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.