gimite / web-socket-js

HTML5 Web Socket implementation powered by Flash
BSD 3-Clause "New" or "Revised" License
2.73k stars 489 forks source link

Detect security errors #115

Closed christianl closed 12 years ago

christianl commented 12 years ago

This commit adds the ability to detect when security errors occur. Might not be the best way to do it but you can take a look.

gimite commented 12 years ago

SECURITY_ERROR can happen on normal connection error, so hooking it doesn't differ much from hooking normal WebSocket.onclose event. If you want to warn user about the possibility of bad Flash Player configuration, I think you can just use onclose event.