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
Currently signalr.js is hardcoded to use window.JSON.parse function for deserializing messages. The problem is that function is not capable of deserializing javascript dates i.e:
..."ServerTime":new Date(1361310055896)...
the $.connection object could expose a function that would be used for deserializing and by default use the window.JSON.parse, but allowing for overriding to any other deserializing func.
I guess same goes for serialization process, to be consistent.
The text was updated successfully, but these errors were encountered:
- Added connection.prototype.json which is initialized as window.JSON
- Changed default ajax content type to text
- Added connection._parseRespons helper to parse ajax responses from text to JSON (when it's not JSONP)
- Update all JS client code to use connection._parseResponse
- Added unit & functional tests
- Updated affected tests
- #1564
- Added connection.prototype.json which is initialized as window.JSON
- Changed default ajax content type to text
- Added connection._parseRespons helper to parse ajax responses from text to JSON (when it's not JSONP)
- Update all JS client code to use connection._parseResponse
- Added unit & functional tests
- Updated affected tests
- #1564
Currently signalr.js is hardcoded to use window.JSON.parse function for deserializing messages. The problem is that function is not capable of deserializing javascript dates i.e:
..."ServerTime":new Date(1361310055896)...
the $.connection object could expose a function that would be used for deserializing and by default use the window.JSON.parse, but allowing for overriding to any other deserializing func.
I guess same goes for serialization process, to be consistent.
The text was updated successfully, but these errors were encountered: