Class MuyanWebSocketComponent

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void broadcast​(java.lang.Object payload)  
      abstract java.lang.String getTopic()  
      void offLoad()
      Invoked when the Muyan Low Code Development Platform unloads the plugin containing this component.
      void onClose​(java.lang.String sessionId)  
      void onLoad()
      Invoked when the Muyan Low Code Development Platform loads the plugin containing this component.
      abstract void onMessage​(java.lang.String sessionId, java.lang.String msgId, java.lang.Object payload)  
      protected boolean pushMessage​(java.lang.String sessionId, java.lang.String msgId, java.lang.Object payload)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MuyanWebSocketComponent

        public MuyanWebSocketComponent()
    • Method Detail

      • onLoad

        public void onLoad()
        Description copied from interface: MuyanPlatformComponent
        Invoked when the Muyan Low Code Development Platform loads the plugin containing this component.

        This method is called automatically by the platform when the plugin is loaded. Implementations can override this method to perform any necessary initialization or setup tasks.

        Specified by:
        onLoad in interface MuyanPlatformComponent
      • offLoad

        public void offLoad()
        Description copied from interface: MuyanPlatformComponent
        Invoked when the Muyan Low Code Development Platform unloads the plugin containing this component.

        This method is called automatically by the platform when the plugin is unloaded. Implementations can override this method to perform any necessary cleanup or teardown tasks.

        Specified by:
        offLoad in interface MuyanPlatformComponent
      • broadcast

        protected final void broadcast​(java.lang.Object payload)
      • pushMessage

        protected final boolean pushMessage​(java.lang.String sessionId,
                                            java.lang.String msgId,
                                            java.lang.Object payload)
      • getTopic

        public abstract java.lang.String getTopic()
      • onMessage

        public abstract void onMessage​(java.lang.String sessionId,
                                       java.lang.String msgId,
                                       java.lang.Object payload)
      • onClose

        public void onClose​(java.lang.String sessionId)