I've been having some issues using the remote-pay-cloud JavaScript SDK
I'm unable to connect to my DevKit Mini. I've tried the examples provided in remote-pay-cloud, clover-cloud-connector-unit-examples, and clover-cloud-connector-example. I've also tried using the RC1, RC2, and BETA versions of the SDK. I've tried on the mini and genymotion emulator mini. Both the physical and emulated mini give me the same errors.
Getting the same thing from all of them.
Chrome console:
klass {cloverConnectorListeners: Array[0], configuration: Object, deviceSupportsAckMessages: false, debugConfiguration: Object, device: WebSocketDevice…}
debug Server responded with information on how to contact device. Opening communication channel...
debug contacting device
debug Contacting url - wss://apisandbox.dev.clover.com/support/remote_pay/cs?token=************&friendlyId=10SSB9D5FVS7G&forceConnect=true
debug this.deviceSocket = [object WebSocket]
debug deviceSocket.onopen
debug Event {isTrusted: true, type: "open", target: WebSocket, currentTarget: WebSocket, eventPhase: 2…}
debug sendMessage klass {id: "s0", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "DISCOVERY_REQUEST", payload: "{"method":"DISCOVERY_REQUEST","version":0}"…}
remote.js:138175
debug Connection appears to be dead...no response in 10930 milliseconds
debug Connection appears to be dead...no response in 12500 milliseconds
debug Connection appears to be dead...no response in 12501 milliseconds
debug Connection appears to be dead...no response in 12499 milliseconds
Config:
var connector = new clover.CloverConnectorFactory().createICloverConnector({
"merchantId": "**********",
"clientId": "**********",
"deviceSerialId": "**********",
"allowOvertakeConnection": true,
"domain": "https://sandbox.dev.clover.com/"
});
Seems to be stuck on the DISCOVERY_REQUEST/pings.
Any suggestions? Let me know if you need more info