mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
XHR now has a close method
This commit is contained in:
@@ -130,6 +130,18 @@
|
||||
|
||||
this.sendXHR.send(data);
|
||||
};
|
||||
|
||||
/**
|
||||
* Disconnects the established `XHR` connection.
|
||||
*
|
||||
* @returns {Transport}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
XHR.prototype.close = function () {
|
||||
this.onClose();
|
||||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle the disconnect request.
|
||||
|
||||
Reference in New Issue
Block a user