MCPcopy Index your code
hub / github.com/buildbot/buildbot / getWebSocketUrl

Function getWebSocketUrl

www/data-module/src/data/WebSocketClient.ts:138–145  ·  view source on GitHub ↗
(location: Location)

Source from the content-addressed store, hash-verified

136}
137
138export function getWebSocketUrl(location: Location) {
139 const hostname = location.hostname;
140 const protocol = location.protocol === 'https:' ? 'wss' : 'ws';
141 const defaultport = location.protocol === 'https:' ? '443' : '80';
142 const path = location.pathname;
143 const port = location.port === defaultport ? '' : `:${location.port}`;
144 return `${protocol}://${hostname}${port}${path}ws`;
145}

Callers 2

doRenderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected