Optionalscheme: stringOptionalhost: stringOptionalport: numberOptionalpath: stringProtected_hostProtected_pathProtected_portProtected_schemeHostname or IP address.
URL path component. Default is "/".
Port number. Default is 80 for ws, 443 for wss.
URL scheme (ws or wss).
Copies all properties defined by the prototype of NetAddress from other to this instance.
Clones this instance and returns a new NetAddress with identical values.
Determines if this NetAddress instance is equal to the other instance.
StaticisDetermines if both NetAddress instances are equal.
Represents a WebSocket endpoint address using URL components.
Note
This differs from the legacy
NetworkAddresswhich uses raw IP/port. NetAddress stores URL components suitable for WebSocket connections: scheme (ws/wss), host, port, and optional path.