the docs for ktor websockets are so out of date. t...
# getting-started
r
the docs for ktor websockets are so out of date. the project generated does not even match what the guides show no idea how to make this work
j
Which project generation are you talking about?
i go to this website and do 2.3.11
oh maybe i misinstalled it
the http instead of websockets?
j
I just tried generating a project with the websocket plugin from there, and the code seems to be ok. Or at least it seems to match better what I can see in the docs (the guide to create a websocket chat). I haven't tried to compile it, though.
r
yes looks more familiar
j
In which way do you find the docs outdated, by the way? Do you have specific things that don't match the Ktor version that the doc advertises? If you do, we could ping the Ktor team to fix the docs.
r
@Joffrey
Copy code
frame as? Frame.Text ?: continue
this line for example never appears in the generated project
j
The docs contain examples and explanations about how to use Ktor. The project generator helps bootstrapping projects by generating a scaffold. They are unrelated and I don't believe they have any reason to match.
1