fixed NPE at connection loss, renamed channel to chatChannel