alexstrat / simudp

NodeJS Socket.io/UDP proxy
10 stars 3 forks source link

'XMLHttpRequest': Invalid URL #6

Open jmym opened 6 years ago

jmym commented 6 years ago

Hi, I have an arduino server listening in the ip 192.168.1.200 an the port 8888. I change the example to follow: var salut = 'ON'; console.log('client : sending', salut); client.send(salut, 0, salut.length, 8888, 'http://192.168.1.200/');

and the Chrome show follow: Uncaught DOMException: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL at Socket.handshake (file:///C:/Users/JM/Desktop/Apertura%20de%20Puerta/simudp-master/example/SimUDP.js:4192:11) at Socket.connect (file:///C:/Users/JM/Desktop/Apertura%20de%20Puerta/simudp-master/example/SimUDP.js:4250:10) at new Socket (file:///C:/Users/JM/Desktop/Apertura%20de%20Puerta/simudp-master/example/SimUDP.js:4102:12) at Object.io.connect (file:///C:/Users/JM/Desktop/Apertura%20de%20Puerta/simudp-master/example/SimUDP.js:2645:16) at new Socket (file:///C:/Users/JM/Desktop/Apertura%20de%20Puerta/simudp-master/example/SimUDP.js:2416:17) at Object.exports.createSocket (file:///C:/Users/JM/Desktop/Apertura%20de%20Puerta/simudp-master/example/SimUDP.js:2422:10) at file:///C:/Users/JM/Desktop/Apertura%20de%20Puerta/simudp-master/example/index.html:12:23

SimUDP.js:4192 -> xhr.open('GET', url, true); Please can you help me?