code: func (s *HTTPServer) SessionsForNode(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
  	args := structs.NodeSpecificRequest{}
  	if done := s.parse(resp, req, &args.Datacenter, &args.QueryOptions); done {
  		return nil, nil
  	}
  
  	// Pull out the node name
  	args.Node = strings.TrimPrefix(req.URL.Path, "/v1/session/node/")
  	if args.Node == "" {
  		resp.WriteHeader(http.StatusBadRequest)
  		fmt.Fprint(resp, "Missing node name")
  		return nil, nil
  	}
  
  	var out structs.IndexedSessions
  	defer setMeta(resp, &out.QueryMeta)
  	if err := s.agent.RPC("Session.NodeSessions", &args, &out); err != nil {
  		return nil, err
  	}
  
  	// Use empty list instead of nil
  	if out.Sessions == nil {
  		out.Sessions = make(structs.Sessions, 0)
  	}
  	return out.Sessions, nil
  }
docs: // SessionsForNode returns all the nodes belonging to a node