Skip to content

Conversation

Yixiu1121
Copy link

Hi,

I am using python-socketio with an Admin UI and noticed that the disconnect reason is not being displayed. I have made some modifications to address this issue. Could you please review my pull request?

Thank you for your time and consideration!

@miguelgrinberg
Copy link
Owner

Good catch, I forgot that the Admin UI can show the reason. Thank you so much, I'll review your change and merge over the next few days.

await self._trigger_event('disconnect', namespace, sid,
reason or self.reason.CLIENT_DISCONNECT)
await self.manager.disconnect(sid, namespace, ignore_queue=True)
await self.manager.disconnect(sid, namespace, reason=reason or self.reason.CLIENT_DISCONNECT, ignore_queue=True)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for?

@miguelgrinberg
Copy link
Owner

@Yixiu1121 Thanks for contributing the fix. Unfortunately the solution needed to be more complicated than this, so I ended up implementing this fix separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants