Its just a question about websocket::stream::async_handshake
- Dominant language
- C++
- Stars
- 4.8k
- Forks
- 694
- Avg merge
- 12h 48m
- Merged PRs (30d)
- 1
Description
Im not sure if i may ask here..
I have 2 of them.
1. Whats is websocket state In case of error in async_handshake? Can i reuse it (call async_resolve and async_connect right after it callbacks with error) ? Or should i call some kind of close and only then call async_resolve ?
2. Can i close socket not gracefully (just shutdown it) without breaking its state ?
Also i have couple of other questions of advanced_server_flex.cpp example.
Im writing a browser game with c++ compiled to wasm (it is a binary that runs in browser)
So i want to have server written with c++ too. But have lack of experience with asio, but i have good exp with async IOCP (win version of epoll) so i have just minor questions, but need to be sure 100% of how exact things are working.
Thanx in advance guys!
Contributor guide
Research direction
Start with the websocket::stream::async_handshake API and the advanced_server_flex.cpp example named in the issue. Trace the documented stream and socket state transitions after errors and shutdown, then determine whether the example or API documentation needs clarification. Done when the questions have authoritative answers and any affected documentation is identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- networking
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100