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
Copy file name to clipboardExpand all lines: spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-atmosphere/src/main/resources/static/javascript/application.js
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,7 @@ $(function() {
44
44
+request.reconnectInterval
45
45
}));
46
46
subSocket
47
-
.push(atmosphere.util
48
-
.stringifyJSON({
47
+
.push(JSON.stringify({
49
48
author : author,
50
49
message : 'is inactive and closed the connection. Will reconnect in '
51
50
+request.reconnectInterval
@@ -81,7 +80,7 @@ $(function() {
81
80
82
81
varmessage=response.responseBody;
83
82
try{
84
-
varjson=atmosphere.util.parseJSON(message);
83
+
varjson=JSON.parse(message);
85
84
}catch(e){
86
85
console.log('This doesn\'t look like a valid JSON: ',message);
87
86
return;
@@ -105,7 +104,7 @@ $(function() {
105
104
text : 'Server closed the connection after a timeout'
0 commit comments