0

I was exploring the remote-pay-android example for clover devices, shared on GitHub https://github.com/clover/remote-pay-... for one of ours business requirement. I found that the sample is using Java WebSocketClient to establish a connection with the Point of Sale (POS) device, which will be running a Java WebSocketServer instance, but I was also curious to know about, how the WebSocketServer handles the client requests. It would be really helpful if someone can suggest / advice regarding the same or share the WebSocketServer example for the Clover device similar to the current example.

asked 2016-10-13 11:18:06 -0500

sandip2907 gravatar image

updated 2016-11-07 08:40:54 -0500

Comments

Any lead in the above mentioned problem scenario would he highly appreciated. Thanks in advance !

sandip2907 gravatar image
sandip2907 2016-10-31 10:49:07 -0500

1 answer

Sort by  
0

Hi Sandip2907,

Thanks for your interest in Clover. Unfortunately, there isn't any sample code for the WebSocketServer for the Clover device.

Did you have a specific question about how the WebSocketServer handles client requests?

Thanks, Miguel

answered 2016-10-31 16:29:39 -0500

miguel gravatar image

updated 2016-10-31 16:30:29 -0500

Comments

Thanks Miguel, for your reply. As you suggested if you can provide a lead towards how WebSocketServer server handles a client request, for example if I wish to do a signature or a transaction request, how it will be handled by the WebSocketServer. Can we implement our own WebSocketServer in a similar manner to handle our own requests ? Thanks in advance !

sandip2907 gravatar image
sandip2907 2016-11-01 09:37:14 -0500

We have a similar requirement where we need to connect a Clover station to a mini and have a master slave config on both the devices. The use case is similar to "Remote Pay display app" but would need more flexibility in terms of the data thats passed between the two devices.

khotmanish gravatar image
khotmanish 2016-12-15 13:56:48 -0500

Technically, you should be able to establish your own WebSocketServer, but unfortunately Clover does not provide technical support for this.

miguel gravatar image
miguel 2016-12-15 19:07:58 -0500