Interface WebSocketConnection


  • public interface WebSocketConnection
    Interface for sending and receiving messages through a web socket connection. Note that web sockets might not be supported on all platforms.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()  
      java.util.List<java.lang.String> flushReceivedMessages()
      Returns the list of all messages that were received since the last time this method was called, then clears the list.
      void send​(java.lang.String message)  
    • Method Detail

      • send

        void send​(java.lang.String message)
      • flushReceivedMessages

        java.util.List<java.lang.String> flushReceivedMessages()
        Returns the list of all messages that were received since the last time this method was called, then clears the list. This method can be called during frame updates to process received messages as part of the animation loop.
      • close

        void close()