Attempting to connect with a credit score cart swiping machine utilizing websockets. i’m utilizing react native as a POS utility. I get the next error when i attempt with iOS (ipad).
{“code”: 1006, “isTrusted”: false, “cause”: “The operation couldn’t be accomplished. (OSStatus error -9807.)”}
Code:
const ws = new WebSocket('wss://192.168.1.2:8443');
ws.onopen = () => {
console.log("Connection Established")
ws.ship('Provoke Cost');
};
ws.onmessage = e => {
console.log(e.information)
}
ws.onerror = e => {
console.log(e.message);
}
ws.onclose = e => {
console.log(e, e.code, e.cause);
}
“react”: “18.2.0”,
“react-native”: “0.74.0”,
I attempted connecting by means of postman and i’m efficiently capable of make connection