You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever web socket connection is closed (due to a browser refresh or browser close event), the server gets a request with Transport as 'close' but it does not have any cookie information or session information.
I use jsonp to do a cross domain call to the atmosphere server for normal http requests.
When the browser supports websockets, i use websocket communication but when a unsubscribe event happens, i think atmosphere sends the disconnect call (transport=close) as a regular http call to the server but not as a jsonp call.
In case of cross domain http requests, the session and cookie is not sent
JSONP might not be possible here as this will be a synchronous request
function _disconnect() {
if (_request.enableProtocol && !_request.firstMessage) {
var query = "X-Atmosphere-Transport=close&X-Atmosphere-tracking-id=" + _request.uuid;
var url = request.url.replace(/([?&])=[^&]*/, query);
url = url + (url === _request.url ? (/?/.test(_request.url) ? "&" : "?") + query : "");
Whenever web socket connection is closed (due to a browser refresh or browser close event), the server gets a request with Transport as 'close' but it does not have any cookie information or session information.
Reference:
https://groups.google.com/forum/#!topic/atmosphere-framework/30acqQzE1Hk
The text was updated successfully, but these errors were encountered: