/opt/canhelp/node_modules/next/dist/esm/client/dev/hot-reloader
NameSizeModeActions
app/-0755rm
pages/-0755rm
get-socket-url.js8630644editdlrm
get-socket-url.js.map16690644editdlrm
shared.js10570644editdlrm
shared.js.map17520644editdlrm
turbopack-hot-reloader-common.js81210644editdlrm
turbopack-hot-reloader-common.js.map82460644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/client/dev/hot-reloader/get-socket-url.js (863B)
import { normalizedAssetPrefix } from '../../../shared/lib/normalized-asset-prefix'; function getSocketProtocol(assetPrefix) { let protocol = window.location.protocol; try { // assetPrefix is a url protocol = new URL(assetPrefix).protocol; } catch (e) {} return protocol === 'http:' ? 'ws:' : 'wss:'; } export function getSocketUrl(assetPrefix) { const prefix = normalizedAssetPrefix(assetPrefix); const protocol = getSocketProtocol(assetPrefix || ''); if (URL.canParse(prefix)) { // since normalized asset prefix is ensured to be a URL format, // we can safely replace the protocol return prefix.replace(/^http/, 'ws'); } const { hostname, port } = window.location; return protocol + "//" + hostname + (port ? ":" + port : '') + prefix; } //# sourceMappingURL=get-socket-url.js.map