Skip to content

Commit

Permalink
Provide action field for error response by ws
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIMkaRU committed Aug 18, 2023
1 parent b842c36 commit b695071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/initWebSocket.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ const _sendJsonRpcResponse = (ws, data, body) => {
this.code = code
},
json (rpcRes) {
if (reqAdapter.action) {
rpcRes.action = reqAdapter.action
if (reqAdapter?.body?.action) {
rpcRes.action = reqAdapter?.body?.action
}

_sendData(ws, rpcRes)
Expand Down

0 comments on commit b695071

Please sign in to comment.