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
My node js is simply to web socket relay kit. It works well on terminal but It crash when runing on iOS device. I build success with your demo project and I just put my node project on "nodejs-project" folder and run my project.
Here is the crash ! It seem NodeMobile doesn't support "... operator" in javascript ?
send(data, options, cb) {
if (this.readyState === WebSocket.CONNECTING) {
throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
}
if (typeof options === 'function') {
cb = options;
options = {};
}
if (typeof data === 'number') data = data.toString();
if (this.readyState !== WebSocket.OPEN) {
sendAfterClose(this, data, cb);
return;
}
const opts = {
binary: typeof data !== 'string',
mask: !this._isServer,
compress: true,
fin: true,
...options ->///////// error here ///////////////
};
if (!this._extensions[PerMessageDeflate.extensionName]) {
opts.compress = false;
}
this._sender.send(data || EMPTY_BUFFER, opts, cb);
}
The text was updated successfully, but these errors were encountered:
My node js is simply to web socket relay kit. It works well on terminal but It crash when runing on iOS device. I build success with your demo project and I just put my node project on "nodejs-project" folder and run my project.
Here is the crash ! It seem NodeMobile doesn't support "... operator" in javascript ?
send(data, options, cb) {
if (this.readyState === WebSocket.CONNECTING) {
throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
}
}
The text was updated successfully, but these errors were encountered: