|
@@ -20,7 +20,6 @@ function connect() {
|
20
|
20
|
console.log('Connected: ' + frame);
|
21
|
21
|
stompClient.subscribe('/topic/posts', function (greeting) {
|
22
|
22
|
showGreeting(JSON.parse(greeting.body).message, JSON.parse(greeting.body).userName);
|
23
|
|
- //showGreeting()
|
24
|
23
|
});
|
25
|
24
|
});
|
26
|
25
|
}
|
|
@@ -49,11 +48,6 @@ function user2() {
|
49
|
48
|
userPostUrl = "/app/posts/2";
|
50
|
49
|
}
|
51
|
50
|
|
52
|
|
-// function sendName() {
|
53
|
|
-// stompClient.send("/app/posts/1", {}, JSON.stringify({'id': '','message': $("#message").val(),'userId': '1'}));
|
54
|
|
-// }
|
55
|
|
-
|
56
|
|
-
|
57
|
51
|
|
58
|
52
|
function sendName() {
|
59
|
53
|
|