|
|
@ -16,9 +16,24 @@ const connect = async (token) => { |
|
|
|
{"X-Authorization": token}, |
|
|
|
(frame) => { |
|
|
|
console.log("Connected", frame); |
|
|
|
|
|
|
|
const requestUrl = "/app/simple"; |
|
|
|
let params = { |
|
|
|
tratata: 1, |
|
|
|
gratata: 0 |
|
|
|
} |
|
|
|
stomp.send( |
|
|
|
requestUrl, |
|
|
|
JSON.stringify(params) |
|
|
|
); |
|
|
|
stomp.subscribe("/user/simple", (results, errors)=>{ |
|
|
|
console.log("results: ", results); |
|
|
|
console.log("errors: ", errors); |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
error => { |
|
|
|
console.error("Disconnected"); |
|
|
|
console.error("Disconnected: ", error); |
|
|
|
} |
|
|
|
); |
|
|
|
} |
|
|
|