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

Is there any way to get notified when client disconnects #3

Open
cscalfani opened this issue Dec 16, 2017 · 1 comment
Open

Is there any way to get notified when client disconnects #3

cscalfani opened this issue Dec 16, 2017 · 1 comment

Comments

@cscalfani
Copy link

Warning: I'm fairly new to Haskell.

Right now, I assume an exception of some sort is thrown because a 500 error is returned and subsequently logged when a client disconnects.

I would like to either handle that exception myself or get notified of the disconnection. Either way, I'd rather that a 500 error wasn't sent/logged.

Thanks.

@turboMaCk
Copy link

I think you have to use Control.Exception (for instance finally) around function that does WS.receiveData conn.

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

2 participants