Support tracking of websocket opening.  Pass native XHR constants onto created functions.