beast icon indicating copy to clipboard operation
beast copied to clipboard

web socket async server example is not working

Open audi0615 opened this issue 2 years ago • 5 comments

Hi.

I'm trying to test the web socket async server example, but I got an error on "net::dispatch(...." and the error says "no instance overloading....". my boost library version is 1.78.

I just copied and pasted the example and i have no idea how to fix it. Please help me.

    // Get on the correct executor
    void
    run()
    {
        // We need to be executing within a strand to perform async operations
        // on the I/O objects in this session. Although not strictly necessary
        // for single-threaded contexts, this example code is written to be
        // thread-safe by default.
        net::dispatch(ws_.get_executor(),
            beast::bind_front_handler(
                &session::on_run,
                shared_from_this()));
    }

audi0615 avatar Aug 24 '22 06:08 audi0615

Did you copy/paste the example exactly, or have you modified it since the copy/paste?

Can you show the error message emitted by the compiler please?

madmongo1 avatar Aug 24 '22 09:08 madmongo1

dear madmongo1

i just copy/pasted the example and modified nothing. please refer to following error message.

2022-08-24_18-29-52

audi0615 avatar Aug 24 '22 09:08 audi0615

Is this actually failing to compile? The picture is showing an intellisense lookup failure.

madmongo1 avatar Aug 24 '22 13:08 madmongo1

Wow. It compiles without problems. but still i get intellisense error. Thank you so much madmongo1.

audi0615 avatar Aug 25 '22 01:08 audi0615

Is this still an open issue?

klemens-morgenstern avatar Aug 30 '22 09:08 klemens-morgenstern