Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A JavaScript WebSocket client library for Internet Explorer.
ActionScript JavaScript Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
flash fixed flash exception handling
server Added SSL support with the as3crypto library
.gitattributes first commit
.gitignore first commit
LICENSE first commit project description update
flashsocket.js renamed trace to Debug for Microsoft Ajax Minifier
flashsocket.min.js renamed trace to Debug for Microsoft Ajax Minifier
flashsocket.swf update
swfobject.js first commit


FlashSocket is a JavaScript/Flash library which adds WebSocket support to old browsers such as IE6.

This project is aimed to enable WebSocket in old browsers while maintaining a decent performance.
Currently all features are implemented but still in a beta state.

If IE6 support is not required I highly recommend you use one of the libraries listed below. They are more stable and well maintained.


<!DOCTYPE html>
<script src="swfobject.js"></script>
<script src="flashsocket.js"></script>
var socket = new FlashSocket("ws://localhost:8080/websocket");

socket.onopen = function (e) {
    console.log("Socket opened");
    socket.send("hello world");
socket.onmessage = function (e) {
    console.log("Recieved message: " +;
socket.onclose = function (e) {
    console.log("Socket closed");

Client Requirements

Adobe Flash Player 9 or above.

Tested browsers

  • Internet Explorer: 6 and 9
  • Opera 11.62
  • Firefox 3.6.16
  • Safari 5.1.5 (Win7)


SWFObject 2.2

Something went wrong with that request. Please try again.