kevoree / kevoree-web-editor

Kevoree model editor
http://editor.kevoree.org
6 stars 2 forks source link

Fail to push to node through WebSocket with IPv6 addr #44

Open gnain opened 10 years ago

gnain commented 10 years ago

The node I use has an IPv6 address in the Network information. The model is here: https://gist.github.com/gnain/4d285501fa45d2195f97 The editor shows an error message:

Failed to construct 'WebSocket': The URL 'ws://fe80:0:0:0:be5f:f4ff:fe21:74e2%252:9000/' is invalid.

1) The IPv6 address does not seem to be good. Should probably be (removing the scope): ws://fe80:0:0:0:be5f:f4ff:fe21:74e2:9000/

2) The node also has a IPv4 address. It should try to reach the node through all the addresses till one is successful.

maxleiko commented 10 years ago

1): Yup gonna have a look at this, thanks

2): When you push to a node, the editor will use the selected NetworkProperty, it won't iterate over all NetworkProperties

gnain commented 10 years ago

For 2), I can understand that you start with the one selected. It is a good strategy for performances. But you should then iterate on other addresses till you find one suitable. This is why we have multiple addresses.

maxleiko commented 10 years ago

I've totally disabled IPv6 connection for now until I find a suitable solution for client-side WebSocket using IPv6. In the mean time, I've made the fix so that all Network Properties are tried on Push/Pull