Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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??

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Currently, Firefox supports prefixed version, MozWebSocket.

share|improve this answer
add comment

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

share|improve this answer
    
Thank you !!!!! –  Eric Mar 13 '12 at 18:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.