Interface WebSocketExtension


public interface WebSocketExtension
When added as a bean, adds an operation to the WebSocket API that clients can invoke.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getOpName()  
    void onInvocation​(ISocketContext context, org.json.JSONObject message)
    Hook for receiving messages
  • Method Details

    • getOpName

      java.lang.String getOpName()
      Returns:
      the "op" value to be sent by clients
    • onInvocation

      void onInvocation​(ISocketContext context, org.json.JSONObject message)
      Hook for receiving messages
      Parameters:
      context - the WebSocket
      message - the entire JSON message received