0

I have a very basic HTML5 page that connects to a websocket from javascript using :

var socket = new WebSocket("ws://localhost:5555"); 

I always get that error in FF10 : ReferenceError: WebSocket is not defined I've check the about:config and WebSockets are enabled.. What's going on??

2 Answers 2

6

Currently, Firefox supports prefixed version, MozWebSocket.

Sign up to request clarification or add additional context in comments.

Comments

3

Firefox supports web sockets prefix-free starting from version 11. here is the release notes

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.