Skip to content

Conversation

@folospior
Copy link
Contributor

Another PR!
This PR allows for getting close codes when the connection is closed by the server (in the on_close function)

I'm still not sure about the API, since it shares the same constructor as sending a custom close code, so as a workaround I created the get_custom_code and get_custom_body functions, which are kinda eh in my opinion, so please do share yours about this. Perhaps turning it into a tuple of #(Int, BitArray) 🤔

@folospior
Copy link
Contributor Author

Hey @rawhat!

This has been sitting there for a while and I really wanna publish a library that actually makes use of this feature. Please review if you could :)

@rawhat rawhat merged commit cb70984 into rawhat:main Nov 14, 2025
1 check passed
@rawhat
Copy link
Owner

rawhat commented Nov 14, 2025

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants