You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (this.format === 'json') {
let transformFunction = function transformFunction(content) {
return content
};
if ('transformFunction' in this) {
transformFunction = this.transformFunction
}
if (!('sendObj' in this.WebSocket)) {
this.WebSocket.sendObj = (obj) => this.WebSocket.send(JSON.stringify(transformFunction(obj)))
}
}
Tell me what you think about the proposition
The text was updated successfully, but these errors were encountered:
The expected websocket response is JSON. I received some data from a third party websocket that does not use JSON but I want to convert it before.
Changing
https://github.com/nathantsoi/vue-native-websocket/blob/master/src/Observer.js#L33-L36
Tell me what you think about the proposition
The text was updated successfully, but these errors were encountered: