Package rosequartz

Interface Natives.WebSocket

Enclosing class:
Natives

public static interface Natives.WebSocket
  • Method Details

    • onConnect

      void onConnect(Runnable action)
    • onMessage

      void onMessage(Consumer<String> action)
    • onClose

      void onClose(Consumer<Throwable> action)
    • connect

      void connect(String url)
    • connectBlocking

      void connectBlocking(String url)
    • accept

      void accept(int port)
    • acceptBlocking

      void acceptBlocking(int port)
    • send

      void send(String message)
    • close

      void close()