Commit 2d3e19cf authored by jfarcand's avatar jfarcand Committed by Andy Wilkinson

Update Atmosphere versions used in smoke test

See gh-221144
parent c3ddfcdb
...@@ -7,9 +7,9 @@ description = "Spring Boot Atmosphere smoke test" ...@@ -7,9 +7,9 @@ description = "Spring Boot Atmosphere smoke test"
dependencies { dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web")) implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web"))
implementation("org.atmosphere:atmosphere-runtime:2.4.14") implementation("org.atmosphere:atmosphere-runtime:2.6.1")
runtimeOnly("org.webjars:atmosphere-javascript:2.3.4") runtimeOnly("org.webjars:atmosphere-javascript:3.0.4")
testImplementation(enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies"))) testImplementation(enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies")))
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test")) testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
......
...@@ -44,8 +44,7 @@ $(function() { ...@@ -44,8 +44,7 @@ $(function() {
+ request.reconnectInterval + request.reconnectInterval
})); }));
subSocket subSocket
.push(atmosphere.util .push(JSON.stringify({
.stringifyJSON({
author : author, author : author,
message : 'is inactive and closed the connection. Will reconnect in ' message : 'is inactive and closed the connection. Will reconnect in '
+ request.reconnectInterval + request.reconnectInterval
...@@ -81,7 +80,7 @@ $(function() { ...@@ -81,7 +80,7 @@ $(function() {
var message = response.responseBody; var message = response.responseBody;
try { try {
var json = atmosphere.util.parseJSON(message); var json = JSON.parse(message);
} catch (e) { } catch (e) {
console.log('This doesn\'t look like a valid JSON: ', message); console.log('This doesn\'t look like a valid JSON: ', message);
return; return;
...@@ -105,7 +104,7 @@ $(function() { ...@@ -105,7 +104,7 @@ $(function() {
text : 'Server closed the connection after a timeout' text : 'Server closed the connection after a timeout'
})); }));
if (subSocket) { if (subSocket) {
subSocket.push(atmosphere.util.stringifyJSON({ subSocket.push(JSON.stringify({
author : author, author : author,
message : 'disconnecting' message : 'disconnecting'
})); }));
...@@ -140,7 +139,7 @@ $(function() { ...@@ -140,7 +139,7 @@ $(function() {
author = msg; author = msg;
} }
subSocket.push(atmosphere.util.stringifyJSON({ subSocket.push(JSON.stringify({
author : author, author : author,
message : msg message : msg
})); }));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment