Browse Source

* Constructors for TJSWebSocket

michael 6 years ago
parent
commit
485f43abca
1 changed files with 5 additions and 2 deletions
  1. 5 2
      packages/rtl/web.pas

+ 5 - 2
packages/rtl/web.pas

@@ -1161,7 +1161,7 @@ Type
     --------------------------------------------------------------------}
     --------------------------------------------------------------------}
   
   
   EcdhKeyDeriveParams = record
   EcdhKeyDeriveParams = record
-    public : TJSCryptoKey;
+    public_ : TJSCryptoKey;
   end;
   end;
   
   
   { --------------------------------------------------------------------
   { --------------------------------------------------------------------
@@ -1169,7 +1169,7 @@ Type
     --------------------------------------------------------------------}
     --------------------------------------------------------------------}
   
   
   DhKeyDeriveParams = record
   DhKeyDeriveParams = record
-    public : TJSCryptoKey;
+    public_ : TJSCryptoKey;
   end;
   end;
   
   
   { --------------------------------------------------------------------
   { --------------------------------------------------------------------
@@ -3250,6 +3250,9 @@ Type
     onclose : TJSEventHandler;
     onclose : TJSEventHandler;
     onmessage : TJSEventHandler;
     onmessage : TJSEventHandler;
     binaryType : String;
     binaryType : String;
+    constructor new(url : String); overload;
+    constructor new(url : String; protocol: String); overload;
+    constructor new(url : String; protocols: array of String); overload;
     Procedure close; overload;
     Procedure close; overload;
     Procedure close(code : Cardinal); overload;
     Procedure close(code : Cardinal); overload;
     Procedure close(code : Cardinal; reason : String); overload;
     Procedure close(code : Cardinal; reason : String); overload;