Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

how to initiate send message from client  #94

@1355700334

Description

@1355700334

it seems client can only send message within a callback function like on_open(), because it requires "shared_ptrWssClient::Connection" from the on_open input parameter to make the "connection->send(send_stream);" action. But if in my application, the client side sometimes needs to initiate the message, something like this function:

void sendMsg(msg) {}

can the shared_ptrWssClient::Connection be made into a variable in the client class? or else how to do that? thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions