Skip to content

How to let the session close at end of the prosess by OnMessage, disable. #330

Open
@digiponta

Description

Hi,
Thank you for your wonderful library.

Now, I would like to know the correct specification.
Is it a specification that the socket session will be closed when the process starting with Start -> OnMessage ends? Looking at the code fragment below, it seems so. Is there a way to keep-alive the socket session from OnMessage?

            connection = new WebSocketConnection(
                clientSocket,
                _config,
                bytes => RequestParser.Parse(bytes, _scheme),
                r => HandlerFactory.BuildHandler(r,
                                                 s => connection.OnMessage(s),
                                                 connection.Close,

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