code: func (n *Node) WSEndpoint() string {
  	n.lock.Lock()
  	defer n.lock.Unlock()
  
  	if n.wsListener != nil {
  		return n.wsListener.Addr().String()
  	}
  	return n.wsEndpoint
  }
docs: // WSEndpoint retrieves the current WS endpoint used by the protocol stack.