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 b75186c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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
9 changes: 5 additions & 4 deletions config/default.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"site_domain": "devwallet.golos.today",
"chain_id": "782a3039b478c839e4cb0c941ff4eaeb7df40bdd68bd441afd444b9da763de12",
"ws_connection_client": "wss://apibeta.golos.today/ws",
"ws_connection_server": "wss://apibeta.golos.today/ws",
"chain_id": "5876894a41e6361bde2e73278f07340f2eb8b41c2facd29099de9deef6cdb679",
"ws_connection_client": "ws://89.22.173.104:8091",
"ws_connection_server": "ws://89.22.173.104:8091",
"helmet": {
"directives": {
"defaultSrc": "'self'",
Expand Down 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 b75186c

Please sign in to comment.