(wsAddr: string)
| 99 | } |
| 100 | |
| 101 | export function deleteWebsocketHeader(wsAddr: string) { |
| 102 | if (wsAddr.toLocaleLowerCase().indexOf("ws://") === 0) { |
| 103 | return `${wsAddr.slice(5)}`; |
| 104 | } else if (wsAddr.toLocaleLowerCase().indexOf("wss://") === 0) { |
| 105 | return `${wsAddr.slice(6)}`; |
| 106 | } |
| 107 | return wsAddr; |
| 108 | } |
| 109 | |
| 110 | export function deleteHttpHeader(addr: string) { |
| 111 | if (addr.toLocaleLowerCase().indexOf("http://") === 0) { |
no outgoing calls
no test coverage detected