Skip to content

Commit be14435

Browse files
committed
- Minor breaking change: WebSocketServer input is now "Hostname or IP"
- removed try-catch region allowing for errors to be catched by usercode fixes #4
1 parent 60559a4 commit be14435

File tree

6 files changed

+1734
-1740
lines changed

6 files changed

+1734
-1740
lines changed

VL.IO.WebSocket.vl

Lines changed: 78 additions & 91 deletions
Large diffs are not rendered by default.

deployment/VL.IO.WebSocket.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
33
<metadata>
44
<id>VL.IO.WebSocket</id>
5-
<version>1.0.3</version>
5+
<version>1.1.0</version>
66
<title>VL.IO.WebSocket</title>
77
<authors>vvvv, Joel Christner</authors>
88
<owners>vvvv</owners>

help/HowTo Access content from outside of localhosts.vl

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
</p:NodeReference>
1616
<Patch Id="I0MNOY29Ym0M7WSJbX8gmQ">
1717
<Canvas Id="RYPsHRGuihtN7XwxeB82zh" CanvasType="Group">
18-
<Pad Id="Ur1eQv2YU6zPowC5lCd3dU" Bounds="145,369,743,29" ShowValueBox="true" isIOBox="true" Value="NETSH http add urlacl url=http://[hostname]:[port]/ user=everyone listen=yes">
18+
<Pad Id="Ur1eQv2YU6zPowC5lCd3dU" Bounds="163,392,743,29" ShowValueBox="true" isIOBox="true" Value="NETSH http add urlacl url=http://[hostname]:[port]/ user=everyone listen=yes">
1919
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
2020
<Choice Kind="TypeFlag" Name="String" />
2121
</p:TypeAnnotation>
2222
<p:ValueBoxSettings>
23-
<p:fontsize p:Type="Int32">14</p:fontsize>
23+
<p:fontsize p:Type="Int32">9</p:fontsize>
2424
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Comment</p:stringtype>
2525
</p:ValueBoxSettings>
2626
</Pad>
27-
<Pad Id="AClxNDVvDY7OufzFOwPB1o" Bounds="124,113,581,63" ShowValueBox="true" isIOBox="true" Value="In order for the WebSocket to be accessible from other devices check the following:&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;">
27+
<Pad Id="AClxNDVvDY7OufzFOwPB1o" Bounds="124,113,596,59" ShowValueBox="true" isIOBox="true" Value="In order for the WebSocket to be accessible from other devices check the following:&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;">
2828
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="CoreLibBasics.vl">
2929
<Choice Kind="TypeFlag" Name="String" />
3030
</p:TypeAnnotation>
@@ -33,7 +33,7 @@
3333
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Comment</p:stringtype>
3434
</p:ValueBoxSettings>
3535
</Pad>
36-
<Pad Id="PlW6ddO719IMMVAgvcv0jA" Bounds="124,485,251,19" ShowValueBox="true" isIOBox="true" Value="If this doesn't help, see more infos here:">
36+
<Pad Id="PlW6ddO719IMMVAgvcv0jA" Bounds="124,518,251,19" ShowValueBox="true" isIOBox="true" Value="If this doesn't help, see more infos here:">
3737
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="CoreLibBasics.vl">
3838
<Choice Kind="TypeFlag" Name="String" />
3939
</p:TypeAnnotation>
@@ -42,7 +42,7 @@
4242
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Comment</p:stringtype>
4343
</p:ValueBoxSettings>
4444
</Pad>
45-
<Pad Id="VaZUr7GJyY6NhxTLnhdpW2" Bounds="124,507,497,19" ShowValueBox="true" isIOBox="true" Value="https://github.com/jchristn/WatsonWebsocket?tab=readme-ov-file#accessing-from-outside-localhost">
45+
<Pad Id="VaZUr7GJyY6NhxTLnhdpW2" Bounds="124,540,497,19" ShowValueBox="true" isIOBox="true" Value="https://github.com/jchristn/WatsonWebsocket?tab=readme-ov-file#accessing-from-outside-localhost">
4646
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
4747
<Choice Kind="TypeFlag" Name="String" />
4848
</p:TypeAnnotation>
@@ -51,7 +51,7 @@
5151
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Link</p:stringtype>
5252
</p:ValueBoxSettings>
5353
</Pad>
54-
<Pad Id="S8OFDf2iMiyM073tqCvSWH" Bounds="145,403,633,63" ShowValueBox="true" isIOBox="true" Value="The &quot;everyone&quot; in &quot;user=everyone&quot; is language specific, so e.g. in german is &quot;jeder&quot; and in spanish &quot;todos&quot;&#xD;&#xA;e.g.:&#xD;&#xA;NETSH http add urlacl url=http://192.168.0.101:4444/ user=everyone listen=yes">
54+
<Pad Id="S8OFDf2iMiyM073tqCvSWH" Bounds="163,414,634,39" ShowValueBox="true" isIOBox="true" Value="The &quot;everyone&quot; in &quot;user=everyone&quot; is language specific, so e.g. in german is &quot;jeder&quot; and in spanish &quot;todos&quot;&#xD;&#xA;e.g.:&#xD;&#xA;">
5555
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="CoreLibBasics.vl">
5656
<Choice Kind="TypeFlag" Name="String" />
5757
</p:TypeAnnotation>
@@ -60,7 +60,7 @@
6060
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Comment</p:stringtype>
6161
</p:ValueBoxSettings>
6262
</Pad>
63-
<Pad Id="RDu8sokM1rxLxtVWEl5hgP" Bounds="73,404,60,55" ShowValueBox="true" isIOBox="true" Value="⚠️">
63+
<Pad Id="RDu8sokM1rxLxtVWEl5hgP" Bounds="80,401,60,55" ShowValueBox="true" isIOBox="true" Value="⚠️">
6464
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
6565
<Choice Kind="TypeFlag" Name="String" />
6666
</p:TypeAnnotation>
@@ -69,7 +69,16 @@
6969
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Comment</p:stringtype>
7070
</p:ValueBoxSettings>
7171
</Pad>
72-
<Pad Id="ERlpUHekYWwOK442oe8NV7" Bounds="124,192,387,41" ShowValueBox="true" isIOBox="true" Value="- Open a port on your firewall to permit traffic on the TCP port upon which the webserver is listening:&#xD;&#xA;&#xD;&#xA;">
72+
<Pad Id="ERlpUHekYWwOK442oe8NV7" Bounds="139,177,593,61" ShowValueBox="true" isIOBox="true" Value="1) Open a port on your firewall to permit traffic on the TCP port upon which the webserver is listening:&#xD;&#xA;&#xD;&#xA;">
73+
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
74+
<Choice Kind="TypeFlag" Name="String" />
75+
</p:TypeAnnotation>
76+
<p:ValueBoxSettings>
77+
<p:fontsize p:Type="Int32">14</p:fontsize>
78+
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Comment</p:stringtype>
79+
</p:ValueBoxSettings>
80+
</Pad>
81+
<Pad Id="FIZ0Co7M8vnLOsPAQGrWzE" Bounds="163,239,553,22" ShowValueBox="true" isIOBox="true" Value="Windows Firewall -&gt; Advanced Settings -&gt; Inbound Rules -&gt; New Rule -&gt; Port -&gt; TCP...">
7382
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
7483
<Choice Kind="TypeFlag" Name="String" />
7584
</p:TypeAnnotation>
@@ -78,7 +87,7 @@
7887
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Comment</p:stringtype>
7988
</p:ValueBoxSettings>
8089
</Pad>
81-
<Pad Id="FIZ0Co7M8vnLOsPAQGrWzE" Bounds="145,237,576,61" ShowValueBox="true" isIOBox="true" Value="Windows Firewall -&gt; Advanced Settings -&gt; Inbound Rules -&gt; New Rule -&gt; Port -&gt; TCP...">
90+
<Pad Id="SObcQOT108vO6jBL3jWvVP" Bounds="139,299,497,92" ShowValueBox="true" isIOBox="true" Value="2) Either run vvvv (or your exported app) as admin, or add a URL ACL by running this command in an elevated commandline (ie. with admin rights):">
8291
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
8392
<Choice Kind="TypeFlag" Name="String" />
8493
</p:TypeAnnotation>
@@ -87,7 +96,7 @@
8796
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Comment</p:stringtype>
8897
</p:ValueBoxSettings>
8998
</Pad>
90-
<Pad Id="SObcQOT108vO6jBL3jWvVP" Bounds="124,304,380,61" ShowValueBox="true" isIOBox="true" Value="- Either run vvvv (or your exported app) as admin&#xD;&#xA;- Or add a URL ACL by running this command in an elevated commandline (ie. with admin rights):">
99+
<Pad Id="G7v2XfVJVARLinIZI73Xtk" Bounds="195,455,492,19" ShowValueBox="true" isIOBox="true" Value="NETSH http add urlacl url=http://192.168.0.101:4444/ user=everyone listen=yes">
91100
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
92101
<Choice Kind="TypeFlag" Name="String" />
93102
</p:TypeAnnotation>
@@ -106,6 +115,4 @@
106115
</Patch>
107116
</Node>
108117
</Patch>
109-
<NugetDependency Id="VJ8q0V1Ren4LEKcNoHypfb" Location="VL.Skia" Version="2024.6.7" />
110-
<NugetDependency Id="TQuWIqxSJkuMhpwCrNFLq9" Location="VL.IO.HTTP.WebServer" Version="0.1.1-alpha" />
111118
</Document>

help/HowTo Send and receive data.vl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</p:NodeReference>
4444
<p:HelpFocus p:Assembly="VL.Lang" p:Type="VL.Model.HelpPriority">High</p:HelpFocus>
4545
<Pin Id="O657ozEIqfAPS9FdwZxhev" Name="Node Context" Kind="InputPin" IsHidden="true" />
46-
<Pin Id="UfyzmRMNtN1Nhol25rn2Xa" Name="Listener IP" Kind="InputPin" />
46+
<Pin Id="TVDfaPte8FdL3GV54axCDO" Name="Hostname or IP" Kind="InputPin" />
4747
<Pin Id="JbIpsk8M2AWNRI5r1Gdspy" Name="Port" Kind="InputPin" DefaultValue="4446" />
4848
<Pin Id="P9X62cHKYoZLCk5hv2xIap" Name="Ssl" Kind="InputPin" />
4949
<Pin Id="C86oFf0UIl5Nl6C9mhGJPT" Name="Enabled" Kind="InputPin" />
@@ -164,7 +164,7 @@
164164
<Choice Kind="TypeFlag" Name="String" />
165165
</p:TypeAnnotation>
166166
</Pad>
167-
<Pad Id="MbadJU3JKTYLy4hAGk7awQ" Comment="Listener IP" Bounds="714,162,53,15" ShowValueBox="true" isIOBox="true" Value="127.0.0.1">
167+
<Pad Id="MbadJU3JKTYLy4hAGk7awQ" Comment="Hostname or IP" Bounds="714,162,53,15" ShowValueBox="true" isIOBox="true" Value="127.0.0.1">
168168
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
169169
<Choice Kind="TypeFlag" Name="String" />
170170
</p:TypeAnnotation>
@@ -519,7 +519,6 @@
519519
<Link Id="B4sL4OB36BOQHu527q7m50" Ids="Rs0PDgx0auTPB798RM09Fq,JbIpsk8M2AWNRI5r1Gdspy" />
520520
<Link Id="Djwo8dbdMxMNxpP8tAZllY" Ids="KuQNvGCszJUQOp6MSG4NVv,N9bzoOLvGqTP8OtT2sTLM3" />
521521
<Link Id="LuW4iV7x0OLOuOJEJNsnGU" Ids="IAb02p38dHzOkWEv2wJaUe,L1MbmkI9XgVP5Wyc5ClWuO" />
522-
<Link Id="PfaAhERPuA4OMq0rmapTio" Ids="MbadJU3JKTYLy4hAGk7awQ,UfyzmRMNtN1Nhol25rn2Xa" />
523522
<Link Id="JXGpX7B8aDQMqBGOJ3bBlO" Ids="F7tyQppyu0QNHF4wF4GuHi,FejZR79LF7UNfARe41SoKj" />
524523
<Link Id="RnegCOC0MUFMRVGaM7RNrJ" Ids="BR5pwmYZrElOAkwMahsoxT,SnbyVT1a5xjPKG3aLfdwmx" />
525524
<Link Id="Mqk87lmA71IPWpzryHAQbc" Ids="RyuytVyzNgvOH93SNCqJk0,BxWj8KUPl4cOrRGLc2jbZw" />
@@ -540,6 +539,7 @@
540539
<Link Id="DGHHwLyMuC0PB6xfHhzExG" Ids="S8NL6VRO9WEMOm6lbIZeGA,Klt27CFXNQaN7joCCaCFbc" />
541540
<Link Id="FUn2VubIi06PtWNADpVy1S" Ids="PytMppb9MVULoF0zapxtS3,FVugtloP0cEM1UnpgDPRoL" />
542541
<Link Id="Aur5XRkWykTNZhsBTgTy2C" Ids="CC2Typh7yaUOb4v59O1pzr,DRx46LZWvnVPt7u2JN4BPg" />
542+
<Link Id="DjGFg6BcNr1QbKpa99Eduv" Ids="MbadJU3JKTYLy4hAGk7awQ,TVDfaPte8FdL3GV54axCDO" />
543543
</Patch>
544544
</Node>
545545
</Patch>

0 commit comments

Comments
 (0)