func TryUpgrade(w http.ResponseWriter, r *http.Request) (net.Conn, bool)
TryUpgrade attempts to upgrade an HTTP request to mqtt over websocket.