title: Unable to disconnect socket into ionic application
body: <p>I am not able to socket disconnect into ionic application. I have socket.on into the constructor of common page in providers. I want to disconnect socket into a function on the same file from where application logout is called.</p>
  
  <p>But I am unable to disconnect the socket. I am multiple socket.on('event') on multiple emit into application. Can anyone help me out?</p>
  
  <p><a href="https://i.stack.imgur.com/wrIEv.png" rel="nofollow noreferrer">sample code which contain function have described into problem statement</a></p>