Browse Source

* Add MessageChannel

Michael Van Canneyt 4 months ago
parent
commit
7a6a08f91b
1 changed files with 10 additions and 0 deletions
  1. 10 0
      packages/rtl/src/weborworker.pas

+ 10 - 0
packages/rtl/src/weborworker.pas

@@ -1810,6 +1810,16 @@ type
   end;
   end;
 
 
 
 
+  { TJSMessageChannel }
+
+  TJSMessageChannel = class external name 'MessageChannel' (TJSObject)
+  private
+    FPort1: TJSMessagePort; external name 'port1';
+    FPort2: TJSMessagePort; external name 'port2';
+  Public
+    property port1 : TJSMessagePort read FPort1;
+    property port2 : TJSMessagePort read FPort2;
+  end;
 
 
 
 
 var
 var