Skip to content

Custom agent #44

@rauchg

Description

@rauchg

Since agent: false I've lost the ability to track the net sockets that correspond with each request. This is hugely important for testing what happens to polling requests when the underlying sockets close in engine.io/socket.io when running the clients from Node.

A couple things would help me:

  • As I suggested before, the ability to generate a custom XMLHttpRequest:

    var XMLHTTPRequest = require('xmlhttprequest')({ agent: myCustomAgent });
  • The ability to access the Node request object. This requires adding some private property to the XMLHttpRequest instances.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions