var ws = new WebSocket('ws://35.228.94.32:7070/ws-xmpp');
ws.onopen = () => {
// connection opened
console.log('open')
ws.onmessage = (e) => {
// a message was received
console.log(e.data);
ws.onerror = (e) => {
// an error occurred
console.log("Error occured", e, e.message);