Class WebThingServer.ThingHandler.ThingWebSocket

  • Enclosing class:
    WebThingServer.ThingHandler

    public static class WebThingServer.ThingHandler.ThingWebSocket
    extends fi.iki.elonen.NanoWSD.WebSocket
    Class to handle WebSockets to a Thing.
    • Constructor Summary

      Constructors 
      Constructor Description
      ThingWebSocket​(java.util.HashMap<java.lang.String,​Thing> thingsMap, fi.iki.elonen.NanoHTTPD.IHTTPSession handshakeRequest)
      Initialize the object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void sendMessage​(java.lang.String message)  
      • Methods inherited from class fi.iki.elonen.NanoWSD.WebSocket

        close, getHandshakeRequest, getHandshakeResponse, isOpen, ping, send, send, sendFrame
      • Methods inherited from class java.lang.Object

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

      • ThingWebSocket

        public ThingWebSocket​(java.util.HashMap<java.lang.String,​Thing> thingsMap,
                              fi.iki.elonen.NanoHTTPD.IHTTPSession handshakeRequest)
        Initialize the object.
        Parameters:
        thingsMap - The List of Things managed by the server where string is id of thing
        handshakeRequest - The initial handshake request
    • Method Detail

      • sendMessage

        public void sendMessage​(java.lang.String message)