use 'connection' replace 'channel', and add 'disconnect' event replace connection's 'done' event.