MCPcopy
hub / github.com/alibaba/anyproxy / generateWsUrl

Function generateWsUrl

test/util/HttpUtil.js:271–273  ·  view source on GitHub ↗
(protocol, urlPath)

Source from the content-addressed store, hash-verified

269}
270
271function generateWsUrl(protocol, urlPath) {
272 return protocol === 'wss' ? WSS_SERVER_BASE + urlPath : WS_SERVER_BASE + urlPath;
273}
274
275/*
276* verify if the request data is a valid proxy request, by checking specified header

Callers 1

testWebsocketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected