Skip to content

Its just a question about websocket::stream::async_handshake #3012

Description

@gitGameStory

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions