Comments (4)
Some further information. It only happens if the connection is closed in the first 30 seconds.
The Flash stack trace:
failed to connect Web Socket server (SecurityError)
make sure the server is running and Flash socket policy file is correctly placed
at WebSocketMain/fatal()
at WebSocket/onSocketSecurityError()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::Socket/onTimeout()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
from web-socket-js.
I can reproduce the error. This is because Flash socket's SecurityError is raised, but not sure why. Maybe it retries to request Socket policy file and then fails? I agree it's a bit annoying but you can just ignore the error... Anyway end users (who haven't installed debug version of Flash Player and don't see console.log) don't see the error.
from web-socket-js.
And if (self.onopen) self.onclose(); is simply bug. Thank you. Fixed.
from web-socket-js.
I don't think it's related to the socket policy file, since I have a different server on port 843, which is not shut down when the original connection is closed. Consequqntly the flash should still be able for poll for the policy-file.
Well, but you're right, it's not affecting the enduser, I just was a little suprised at the error, whcih kept coming up.
from web-socket-js.
Related Issues (20)
- policy server file domain match error HOT 2
- Cant make it work even with perl socket policy server HOT 1
- Connection is closed before receiving all messages... HOT 2
- onmessage event doesn't happens when IE8 in normal mode, but works in F12 script debug mode O_o HOT 7
- Confirm the license version HOT 5
- Only variables should be passed by reference HOT 1
- IE9 Unable to connect websocket HOT 4
- Fetching policy file error connecting to wss endpoint HOT 4
- Edge browser support HOT 1
- don't work at ie 8 HOT 3
- ie8 and ie9 APPCRASH HOT 2
- IE8 下 自动关闭 HOT 2
- How to use web-socket-js with typescript? HOT 2
- Error during WebSocket handshake: Unexpected response code: 200 HOT 2
- IE8 can not connect to websocket HOT 2
- Real-time Collaborative editor HOT 1
- Can not open websocket when using https, but normal in http HOT 11
- Ie9 browser problem
- Show preview of html in new tab
- may help me? some one has this problem. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-socket-js.