question

Dyego Costa avatar image
Dyego Costa asked Dyego Costa commented

Closing Clover connection seems to have no effect

I writing a web application that uses Clover's JS SDK and I'm having trouble closing the connection opened to communicate with the device after I'm done using it.

I'm using the Clover#close function https://rawgit.com/clover/remote-pay-...

I'm doing something equivalent to the following

clover = new Clover()
clover.initDeviceConnection(function(error) {
   clover.close()
})

But even though the clover.close() is ran and clover.isOpen() returns false I keep receiving the following on the logs afterwards:

VM189895:2274 deviceSocket.onmessage
VM189895:125 Connection Ok
VM189895:2274 deviceSocket.onmessage
VM189895:125 Connection Ok
VM189895:2274 deviceSocket.onmessage
VM189895:125 Connection Ok

Also after having this issue I noticed that this other issue comes up http://devask.clover.com/question/242... Basically the any new Clover instance doesn't work after I closed the first one, only refreshing the browser fix it.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

hammer avatar image
hammer answered Dyego Costa commented

This is a known bug that will be addressed in an upcoming update.

[Edit] Please see the answer at http://devask.clover.com/question/242...

3 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dyego Costa avatar image Dyego Costa commented ·

Is there a way for me to get notified when this update comes out? Or anywhere I find my current SDK version and the current available version for download?

0 Likes 0 ·
Dyego Costa avatar image Dyego Costa commented ·
0 Likes 0 ·
hammer avatar image hammer ♦ commented ·

Please see the answer at http://devask.clover.com/question/242...

0 Likes 0 ·

Welcome to the
Clover Developer Community