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
it work well on browser but in android that truncate receive message.
my code is this:
var ip = '192.168.1.102'
var wsOptions = {
url: 'ws://' + ip + ':81',
timeout: 5000,
pingInterval: 10000,
// headers: {"Authorization": "Bearer " + accessToken},
acceptAllCerts: false,
};
CordovaWebsocketPlugin.wsConnect(
wsOptions,
function (recvEvent) {
// console.log(
// // "Received callback from WebSocket: " + recvEvent["callbackMethod"]
// );
if (recvEvent["callbackMethod"] == "onMessage") {
store['commit']('SOCKET_ONMESSAGE', recvEvent["message"])
}
},
function (success) {
console.log("Connected to WebSocket with id: " + success.webSocketId, success);
store['commit']('SOCKET_ONOPEN', success)
},
function (error) {
console.log(
"Failed to connect to WebSocket: " +
"code: " +
error["code"] +
", reason: " +
error["reason"] +
", exception: " +
error["exception"]
);
}
);
The text was updated successfully, but these errors were encountered:
it work well on browser but in android that truncate receive message.
my code is this:
var ip = '192.168.1.102'
var wsOptions = {
url: 'ws://' + ip + ':81',
timeout: 5000,
pingInterval: 10000,
// headers: {"Authorization": "Bearer " + accessToken},
acceptAllCerts: false,
};
CordovaWebsocketPlugin.wsConnect(
wsOptions,
function (recvEvent) {
// console.log(
// // "Received callback from WebSocket: " + recvEvent["callbackMethod"]
// );
if (recvEvent["callbackMethod"] == "onMessage") {
store['commit']('SOCKET_ONMESSAGE', recvEvent["message"])
}
},
function (success) {
console.log("Connected to WebSocket with id: " + success.webSocketId, success);
store['commit']('SOCKET_ONOPEN', success)
},
function (error) {
console.log(
"Failed to connect to WebSocket: " +
"code: " +
error["code"] +
", reason: " +
error["reason"] +
", exception: " +
error["exception"]
);
}
);
The text was updated successfully, but these errors were encountered: