Examples of broadcastToken()


Examples of org.jwebsocket.server.TokenServer.broadcastToken()

    }

    // notify clients about shutdown
    Token lResponseToken = lServer.createResponse(aToken);
    lResponseToken.put("msg", "Shutdown in progress...");
    lServer.broadcastToken(lResponseToken);

    JWebSocketInstance.setStatus(JWebSocketInstance.SHUTTING_DOWN);

  }
View Full Code Here

Examples of org.jwebsocket.server.TokenServer.broadcastToken()

   * @param aToken
   */
  public void broadcastToken(WebSocketConnector aSource, Token aToken) {
    TokenServer lServer = (TokenServer) getServer();
    if (lServer != null) {
      lServer.broadcastToken(aSource, aToken);
    }
  }

  public void broadcastToken(WebSocketConnector aSource, Token aToken,
      BroadcastOptions aBroadcastOptions) {
View Full Code Here

Examples of org.jwebsocket.server.TokenServer.broadcastToken()

  public void broadcastToken(WebSocketConnector aSource, Token aToken,
      BroadcastOptions aBroadcastOptions) {
    TokenServer lServer = (TokenServer) getServer();
    if (lServer != null) {
      lServer.broadcastToken(aSource, aToken, aBroadcastOptions);
    }
  }

  /**
   * Convenience method, just a wrapper for token server method
View Full Code Here

Examples of org.jwebsocket.server.TokenServer.broadcastToken()

   * @param aToken
   */
  public void broadcastToken(WebSocketConnector aSource, Token aToken) {
    TokenServer lServer = getServer();
    if (lServer != null) {
      lServer.broadcastToken(aSource, aToken);
    }
  }

  public void broadcastToken(WebSocketConnector aSource, Token aToken,
      BroadcastOptions aBroadcastOptions) {
View Full Code Here

Examples of org.jwebsocket.server.TokenServer.broadcastToken()

      lEvent.put("name", "filesaved");
      lEvent.put("filename", lFilename);
      lEvent.put("sourceId", aConnector.getId());
      lEvent.put("url", getSetting(WEB_ROOT_KEY, WEB_ROOT_DEF) + lFilename);
      // TODO: Limit notification to desired scope
      lServer.broadcastToken(lEvent);
    }
  }

  /**
   * load a file
View Full Code Here

Examples of org.jwebsocket.server.TokenServer.broadcastToken()

  public void broadcastToken(WebSocketConnector aSource, Token aToken,
      BroadcastOptions aBroadcastOptions) {
    TokenServer lServer = getServer();
    if (lServer != null) {
      lServer.broadcastToken(aSource, aToken, aBroadcastOptions);
    }
  }

}
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.