{"record":{"id":"add8d119743b1c2d","repo":"gatsbyjs/gatsby","slug":"could-not-get-web-socket","errorCode":null,"errorMessage":"Could not get web socket","messagePattern":"Could not get web socket","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby/cache-dir/dev-loader.js","lineNumber":70,"sourceCode":"\n    this.notFoundPagePathsInCaches = new Set()\n\n    if (socket) {\n      socket.on(`message`, msg => {\n        if (msg.type === `staticQueryResult`) {\n          this.handleStaticQueryResultHotUpdate(msg)\n        } else if (msg.type === `pageQueryResult`) {\n          this.handlePageQueryResultHotUpdate(msg)\n        } else if (msg.type === `sliceQueryResult`) {\n          this.handleSliceQueryResultHotUpdate(msg)\n        } else if (msg.type === `stalePageData`) {\n          this.handleStalePageDataMessage(msg)\n        } else if (msg.type === `staleServerData`) {\n          this.handleStaleServerDataMessage(msg)\n        }\n      })\n    } else if (process.env.NODE_ENV !== `test`) {\n      console.warn(`Could not get web socket`)\n    }\n  }\n\n  updateAsyncRequires(asyncRequires) {\n    this.asyncRequires = asyncRequires\n  }\n\n  loadPage(pagePath) {\n    const realPath = findPath(pagePath)\n    return super.loadPage(realPath).then(result => {\n      if (this.isPageNotFound(realPath)) {\n        this.notFoundPagePathsInCaches.add(realPath)\n      }\n\n      return result\n    })\n  }\n","sourceCodeStart":52,"sourceCodeEnd":88,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby/cache-dir/dev-loader.js#L52-L88","documentation":"Development-runtime diagnostic: the dev-loader's websocket helper received a falsy socket (socket.io connection could not be established to the dev server). Hot updates, query results and error overlays will not be pushed; the loader logs this warning once during construction and pages fall back to full reloads/no updates.","triggerScenarios":"Thrown at packages/gatsby/cache-dir/dev-loader.js:70 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm `gatsby develop` is still running and the port/host match the page URL","Check for proxies, firewalls or custom devServer config (https, allowedHosts) blocking the websocket upgrade","Disable ad-blockers/browser extensions that can kill websocket connections","Restart the dev server and hard-reload the page"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e85d62f1779e353eaac1753211629a26d123e26c","analyzedAt":"2026-08-26T17:50:09.662Z","contentChangedAt":"2026-08-26T17:50:09.662Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}