I have the following scenario. A desktop PC running chrome connected to a public SSL site. This web app sometimes receives a message with data from a barcode reader. Here it where the truth comes.
I did a VB daemon to act as a webSocket server. The browser connects to this “localhost” WS Server. When the daemon reads a barcode, the daemon sends a message to the browser and some action is taken.
Here´s where the trouble comes. The client website and browser are connected to a public IP with a valid SSL certificate, so you are under SSL, the WS Client on the browser, requires mandatory WSS connection. So, if I try WSS connection to the daemon at localhost, it denies the outbound connection from Chrome because the certificate is invalid (obvious as there is no certificate for localhost because of the Middleman Attack problem)
What are my choices, of building some kind of message broker with B4J to connect with javascript or any other method from B4J to the browser and vice versa? Is there socketIO server in B4J possible? I already use socketIO to real time notifications between the user and the server.
One solution would be that the scanner posts the data to my external server, and my server forwards the message to the browser, but we need direct LAN connection. Also try with WebRTC, but again we need a signaling public App to build the config and routing, although routing is local.
Any use cases that a browser under SSL, can do direct message broker to a B4J app running in the same LAN/IP/Local?
I did a VB daemon to act as a webSocket server. The browser connects to this “localhost” WS Server. When the daemon reads a barcode, the daemon sends a message to the browser and some action is taken.
Here´s where the trouble comes. The client website and browser are connected to a public IP with a valid SSL certificate, so you are under SSL, the WS Client on the browser, requires mandatory WSS connection. So, if I try WSS connection to the daemon at localhost, it denies the outbound connection from Chrome because the certificate is invalid (obvious as there is no certificate for localhost because of the Middleman Attack problem)
What are my choices, of building some kind of message broker with B4J to connect with javascript or any other method from B4J to the browser and vice versa? Is there socketIO server in B4J possible? I already use socketIO to real time notifications between the user and the server.
One solution would be that the scanner posts the data to my external server, and my server forwards the message to the browser, but we need direct LAN connection. Also try with WebRTC, but again we need a signaling public App to build the config and routing, although routing is local.
Any use cases that a browser under SSL, can do direct message broker to a B4J app running in the same LAN/IP/Local?