Hi! I'm a total ktor noob. I helped someone connect OPENRNDR with websockets, but it works only on localhost: https://openrndr.discourse.group/t/using-openrndr-as-a-websocket-client/532/9?u=abe I don't see examples in the ktor website for connecting to WSS servers. Any pointers as to what I should change in that code to connect to an online service? Thanks!
a
Aleksei Tirman [JB]
03/24/2023, 8:58 AM
Providing an address with the
wss
protocol should be enough. Here is an example:
val session = client.webSocketSession("<wss://ws.postman-echo.com/raw>")