internal KVMap(WebSocketConnection conn, String name) { this.conn = conn; this.name = name; }
/// <summary> /// Connect to an eFTL server. /// </summary> /// <description> /// This call returns immediately; connecting continues asynchronously. /// When the connection is ready to use, the eFTL library calls your /// <see cref="IConnectionListener.OnConnect"/> method, passing an /// <see cref="IConnection"/> object that you can use to publish and subscribe. /// <p> /// A program that uses more than one server channel must connect /// separately to each channel. /// </p> /// /// <param name="url"> /// The call connects to the eFTL server at this URL. /// The URL can be in either of these forms: /// <list type="bullet"> /// <item> <c> ws://host:port/channel </c> </item> /// <item> <c> wss://host:port/channel </c> </item> /// </list> /// Optionally, the URL can contain the username, password, and/or /// client identifier: /// <list type="bullet"> /// <item> <c> ws://username:password@host:port/channel?clientId=<identifier> </c> </item> /// <item> <c> wss://username:password@host:port/channel?clientId=<identifier> </c> </item> /// </list> /// </param> /// <param name="props"> /// These properties affect the connection attempt: /// <list type="bullet"> /// <item> <see cref="EFTL.PROPERTY_CLIENT_ID"/> </item> /// <item> <see cref="EFTL.PROPERTY_USERNAME"/> </item> /// <item> <see cref="EFTL.PROPERTY_PASSWORD"/> </item> /// <item> <see cref="EFTL.PROPERTY_TIMEOUT"/> </item> /// </list> /// </param> /// <param name="listener"> /// Connection events invoke methods of this listener. /// </param> /// </description> /// /// <seealso cref="IConnectionListener"/> /// public static void Connect(String url, Hashtable props, IConnectionListener listener) { WebSocketConnection ws = new WebSocketConnection(url, listener); ws.Connect(props); }