Using ionViewWillLeave when go to specific page

Im in a page with different buttons that go to different views, but I dont want to do something (disconnect my socket ) if the new destination is new-view.html How?

 ionViewWillLeave() {
     // ONLY if the destination view is not new-view.html
     this.socket.disconnect();
 }