Callback should not be called if there is support for WebSocket