This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code is fallback for https://github.com/Worlize/WebSocket-Node | |
// add the broadcast to https://gist.github.com/1219165 | |
// 2011.11.30 tato@http://www.facebook.com/javascripting | |
// Example of how to fallback to alternative websocket library for old protocol clients | |
// see https://gist.github.com/1148686 | |
var http = require('http'), | |
WebSocketRequest = require('websocket').request, |