* generate the final url based on protocol and path *
(protocol, urlPath)
| 265 | * |
| 266 | */ |
| 267 | function generateUrl(protocol, urlPath) { |
| 268 | return protocol === 'http' ? HTTP_SERVER_BASE + urlPath : HTTPS_SERVER_BASE + urlPath; |
| 269 | } |
| 270 | |
| 271 | function generateWsUrl(protocol, urlPath) { |
| 272 | return protocol === 'wss' ? WSS_SERVER_BASE + urlPath : WS_SERVER_BASE + urlPath; |
no outgoing calls
no test coverage detected