lukeed / sockette

The cutest little WebSocket wrapper! 🧦
MIT License
2.45k stars 81 forks source link

SCRIPT5022: SecurityError in IE11 #44

Closed houyaowei closed 5 years ago

houyaowei commented 5 years ago

react version: 16.2.0

import the lib: import Sockette from "sockette";`

get init instance: 2

after the component loaded . then refresh the browser , this error occured : 4

3 1

how can I fix this problem? thanks

lukeed commented 5 years ago

Hey~! This is an IE thing in regards to localhost connecting over wss:// protocols. Here's a SO answer I found that explains it & gives a workaround: https://stackoverflow.com/a/20145203/3577474

I'm going to close this since it's not related to Sockette – but I'd be curious to hear if those steps solved it for you. Thanks!