Re: WebSockets support in vw9.4.1?
David Shaffer <[email protected]> Sat, 11 Jan 2025 17:29:06 -0500
| Newsgroups | gmane.comp.lang.smalltalk.vwnc |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_949F6C03-6E39-487D-B74D-906AB97AAB8B Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks Mark. My apologies for not being more clear=E2=80=A6I need to make = a WebSockets connection from VisualWorks (client) to a remote service: http= s://urldefense.com/v3/__https://docs.cdp.coinbase.com/advanced-trade/docs/w= s-overview__;!!DZ3fjg!6QIAe3BKMOa4IZ7hCyVeYmTL9cMFok3PX3RoaG4KcAt8YDoxv-aH5= 5gG_6m1TWQjQQ8H5Ec8Pa5hvygplSBRVjBJUD1AvvY$ . The examples you mentioned se= em to be Javascript on the client side. I have most of the non-WebSockets Coinbase =E2=80=9CAdvanced Trade=E2=80=9D= API working on client-side but right now I=E2=80=99m polling for price upd= ates :( Best, David > On Jan 11, 2025, at 5:19=E2=80=AFPM, Mark PIrogovsky <[email protected]= > wrote: >=20 > David, >=20 > It is a part of the SiouX server now. >=20 > According to the WebServerGuide.pdf document: >=20 > "WebSockets provide a means to establish a bidirectional > socket connection between the client and > server. This allows for low-latency communication > between client and server. WebSockets are intended to > supersede the use of Comet or long polling techniques. > They can augment Ajax when a persistent connection is > required for data to be sent from server to client. > SiouX provides a complete implementation of the > WebSocket protocol. To enable this support in SiouX, > simply use the Parcel manager to load the package > SiouX-WebSocket. The standard VisualWorks distribution > also includes two WebSocket examples in the AppeXExamples > package: class WebSocketChat and WebSocketApp" >=20 > Hope this helps. >=20 > I newer used it myself, so I would be very interested to hear about your = experience. >=20 > Best regards, >=20 > -- >=20 > Mark Pirogovsky >=20 > On 1/10/2025 3:55 PM, David Shaffer wrote: >> Anyone know of a way to get WebSockets connections working in vw9.4.1? = I=E2=80=99ve been staring a popular Python implementation and I=E2=80=99ve = decided I=E2=80=99m too old to implement another protocol ;) >>=20 >> Best, >>=20 >> David --Apple-Mail=_949F6C03-6E39-487D-B74D-906AB97AAB8B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset= =3Dutf-8"></head><body style=3D"overflow-wrap: break-word; -webkit-nbsp-mod= e: space; line-break: after-white-space;">Thanks Mark. My apologies f= or not being more clear=E2=80=A6I need to make a WebSockets connection from= VisualWorks (client) to a remote service: <a href=3D"https://urldefen= se.com/v3/__https://docs.cdp.coinbase.com/advanced-trade/docs/ws-overview__= ;!!DZ3fjg!6QIAe3BKMOa4IZ7hCyVeYmTL9cMFok3PX3RoaG4KcAt8YDoxv-aH55gG_6m1TWQjQ= Q8H5Ec8Pa5hvygplSBRVjBJUD1AvvY$">https://docs.cdp.coinbase.com/advanced-tra= de/docs/ws-overview</a>. The examples you mentioned seem to be Javascript o= n the client side.<div><br></div><div>I have most of the non-WebSockets Coi= nbase =E2=80=9CAdvanced Trade=E2=80=9D API working on client-side but right= now I=E2=80=99m polling for price updates :(</div><div><br></div><div>Best= ,</div><div><br></div><div>David</div><div><br></div><div><div><br><blockqu= ote type=3D"cite"><div>On Jan 11, 2025, at 5:19=E2=80=AFPM, Mark PIrogovsky= <[email protected]> wrote:</div><br class=3D"Apple-interchange-new= line"><div><div>David,<br><br>It is a part of the SiouX server now.<br><br>= According to the WebServerGuide.pdf document:<br><br>"WebSockets provide a = means to establish a bidirectional<br>socket connection between the client = and<br>server. This allows for low-latency communication<br>between client = and server. WebSockets are intended to<br>supersede the use of Comet or lon= g polling techniques.<br>They can augment Ajax when a persistent connection= is<br>required for data to be sent from server to client.<br>SiouX provide= s a complete implementation of the<br>WebSocket protocol. To enable this su= pport in SiouX,<br>simply use the Parcel manager to load the package<br>Sio= uX-WebSocket. The standard VisualWorks distribution<br>also includes two We= bSocket examples in the AppeXExamples<br>package: class WebSocketChat and W= ebSocketApp"<br><br>Hope this helps.<br><br>I newer used it myself, so I wo= uld be very interested to hear about your experience.<br><br>Best regards,<= br><br>--<br><br>Mark Pirogovsky<br><br>On 1/10/2025 3:55 PM, David Shaffer= wrote:<br><blockquote type=3D"cite">Anyone know of a way to get WebSockets= connections working in vw9.4.1? I=E2=80=99ve been staring a popular = Python implementation and I=E2=80=99ve decided I=E2=80=99m too old to imple= ment another protocol ;)<br><br>Best,<br><br>David<br></blockquote></div></= div></blockquote></div><br></div></body></html>= --Apple-Mail=_949F6C03-6E39-487D-B74D-906AB97AAB8B--