Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
update handlemessagereceived
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Jul 8, 2018
1 parent 823fbff commit a19070d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions connectionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,15 @@ export default class ConnectionManager {
if (serverId) {
const apiClient = this.getApiClient(serverId);
if (apiClient) {

if (typeof (msg.Data) === 'string') {
try {
msg.Data = JSON.parse(msg.Data);
}
catch (err) {
}
}

apiClient.handleMessageReceived(msg);
}
}
Expand Down

0 comments on commit a19070d

Please sign in to comment.