Added disconnectWebSocket method