Skip to content

Commit

Permalink
Fix WS Notify
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Dec 13, 2023
1 parent bb667bf commit 7cee429
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/utils/NotifyApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ async function connectNotifyWs() {
})

notifyWs.addEventListener('message', (msg) => {
console.log('notifyWs message:', msg)
if (window._notifyDebug) {
console.log('notifyWs message:', msg)
}
const data = JSON.parse(msg.data)
const id = data.id
const request = window.notifyWsReq.requests[id]
Expand Down
3 changes: 2 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"custom_client": "blogs"
},
"notify_service": {
"host": "https://devnotify.golos.app"
"host": "https://devnotify.golos.app",
"host_ws": "ws://devnotify.golos.app/ws"
},
"apidex_service": {
"host": "https://api-dex.golos.app"
Expand Down

0 comments on commit 7cee429

Please sign in to comment.