()
| 166 | } |
| 167 | |
| 168 | get port(): number { |
| 169 | const port = this.address.split(':').pop(); |
| 170 | return port ? Number.parseInt(port, 10) : 27017; |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * Determines if another `ServerDescription` is equal to this one per the rules defined in the SDAM specification. |