TCP sockets in HTML

I am trying to open a TCP socket to a peripheral device from within RhoElements, send a message to the device and then close the socket. I have tried using HTML5 with WebSockets, however it looks like the device does not support WebSockets, only TCP sockets. 

Is there a way to open a TCP socket using HTML5 with RhoElements?

Naftali

Anonymous (not verified)
Hi,WebSockets are supported

Hi,

WebSockets are supported in RhoElements and the technology sits above a single TCP socket.  Which peripheral device are you trying to connect to?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Naftali Nathan
The device is an APG Ethernet

The device is an APG Ethernet Cash drawer.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
My guess would be the cash

My guess would be the cash drawer doesn't support WebSockets, if you want to communicate to external hardware I'd suggest writing an NPAPI plugin for RhoElements.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments