code: func (api *PrivateAdminAPI) StopWS() (bool, error) {
  	api.node.lock.Lock()
  	defer api.node.lock.Unlock()
  
  	if api.node.wsHandler == nil {
  		return false, fmt.Errorf("WebSocket RPC not running")
  	}
  	api.node.stopWS()
  	return true, nil
  }
docs: // StopWS terminates an already running websocket RPC API endpoint.