Using node, I can connect to a phidget web server running on a raspberry pi from my laptop using this address: phid://raspberry.pi/5661.
However, when I try to connect using javascript using that address, I get an error that says "failed to connect to server".
I also tried ws://raspberrypi.local/phidgets, and I get an error: "Socket error (server unavailable)"
The Phidget control panel application does find the server and accesses the controllers on it. It just seems to be in javascript running in a web page that it can't find it.
The api documentation for javascript doesn't indicate how to open a remote server. So I am stumped. Is this even possible?