mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 07:42:12 -05:00
Delete the handler for the disconnect JSON event
Nothing in the server actually emits the `disconnect` event, so the client does not need to handle it.
This commit is contained in:
@@ -581,7 +581,6 @@
|
||||
self.receive(message.message);
|
||||
}
|
||||
},
|
||||
disconnect: function () {},
|
||||
nameTaken: function (data) {
|
||||
// Legacy -- but still how the server communicates that a
|
||||
// name is taken, so we need to support it for now.
|
||||
|
||||
Reference in New Issue
Block a user