https://kotlinlang.org logo
Title
b

ByFloRedstone

11/29/2020, 12:09 PM
How can I imagine the Ktor websockets? Are they so that the browser permanently shows "refresh" or are they like a JavaScript file so that the user doesn't really notice them?
m

Marcin Wisniowski

11/29/2020, 6:34 PM
WebSockets can be used for a variety of purposes, they just open a persistent connection between two parties which you send data on in both ways (in contrast to the usual request/response model). They don't result in a "permanent refresh" in the web browser, if used on a web site displayed by a web browser.
b

ByFloRedstone

11/29/2020, 6:38 PM
OK thanks but I have a problem using it. When I connect the server throws an classnotfound error. I added the maven dependency but the jar was empty