Code Monkey home page Code Monkey logo

Comments (4)

bzikarsky avatar bzikarsky commented on June 29, 2024

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.

gimite avatar gimite commented on June 29, 2024

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.

gimite avatar gimite commented on June 29, 2024

And if (self.onopen) self.onclose(); is simply bug. Thank you. Fixed.

from web-socket-js.

bzikarsky avatar bzikarsky commented on June 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.