uNetworking / uSockets

Miniscule cross-platform eventing, networking & crypto for async applications
Apache License 2.0
1.29k stars 268 forks source link

us_socket_close should take void *user #110

Closed ghost closed 4 years ago

ghost commented 4 years ago

We need to pass the (internal) close reason to our close handler in uWebSockets. This cannot be done since us_socket_close won't bring any user data along to us_socket_context_on_close handler.

ghost commented 4 years ago

We can pass internal reason codes this way as well.