(address: Address)
| 214 | * @since 4.0.0 |
| 215 | */ |
| 216 | export const formatAddress = (address: Address): string => { |
| 217 | switch (address._tag) { |
| 218 | case "UnixAddress": |
| 219 | return `unix://${address.path}` |
| 220 | case "TcpAddress": |
| 221 | return `http://${address.hostname}:${address.port}` |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * Reads the current server address, formats it with `formatAddress`, and passes |
no outgoing calls
no test coverage detected