Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
digiponta opened this issue Aug 23, 2022 · 0 comments
Open

Comments

@digiponta
Copy link

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,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant