Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I've been checking out some of the latest multiplayer engines in HTML all supporting multi-user games (Very nice) - I believe all these engines use Web Sockets for communication.

That’s why we’ve decided to disable support for WebSocket in Firefox 4, starting with beta 8 due to a protocol-level security issue. Beta 7 of Firefox has support for the -76 version of the protocol, the same version that’s included with Chrome and Safari. Beta 8 of Firefox 4 will remove that support. Anne van Kesteren of Opera also announced that Opera are dropping Websocket support. We are confident that other browser developers will follow.

Source: Websockets Disabled in FireFox 4

I've just come accross the above, so no sockets in Firefox 4 or Opera.... thats big. Is anyone aware of an alternate or is it Chrome or do we need to just sit and wait for the next release of the major browsers.

More info : Rocket Engine appears to work with all browsers including IE8 (http://rocketpack.fi/engine/) what will it be using as a method of communication?

share|improve this question
    
It may also happen that the security issue will be resolved and WebSockets will be back in FireFox. They are not disabled forever, they are disabled until they are made secure. –  StasM Jan 5 '11 at 16:23
2  
WebSockets are enabled again now –  Janus Troelsen Oct 12 '12 at 15:11
add comment

3 Answers

up vote 6 down vote accepted

Yes, there are alternatives:

  • Adobe Flash Socket
  • AJAX long polling
  • AJAX multipart streaming
  • Forever Iframe
  • JSONP Polling

Take a look at socket.io which handles these automatically depending on what is available.

share|improve this answer
add comment

You can always use Flash Sockets though the native Web Socket implementation will be faster with less hassle.

As it stands, without Flash there is no decent substitute. Many libraries that wrap many different transport modes under one "hood" but nothing that performs the same.

share|improve this answer
    
Does Silverlight have something similar? –  Robert Harvey Jan 4 '11 at 22:02
    
@Robert: I have not used Silverlight so I can't answer that. I would assume they have some equivalent ability to equate with Flash. –  Josh K Jan 4 '11 at 22:14
    
@Robert You can use HTTP Duplex polling in silverlight. –  LiamB Jan 5 '11 at 8:40
    
Does the Flash Sockets have a solution for port blocked and not. Let say that only port 80 is open... can it share this port with Apache? –  Patrick Desjardins Jul 8 '11 at 2:57
    
@Daok: Sure, if you do some sort of reverse proxying on the server side. –  Josh K Jul 8 '11 at 4:25
add comment

There's still orbited sockets.

Simply put, Orbited allows you to communicate in real-time with your visitors. Using streaming networking for JavaScript... Orbited allows you to write real-time web applications...

Orbited bridges TCP streams to your browser. Thus, you can connect your clients to any TCP/IP service (IRC servers, custom applications, STOMP daemons such as RabbitMQ and ActiveMQ). Orbited uses js.io to hande protocols such as IRC and STOMP...

share|improve this answer
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.