Skip to content

Instantly share code, notes, and snippets.

View theturtle32's full-sized avatar

Brian McKelvey theturtle32

View GitHub Profile
@theturtle32
theturtle32 / flashpolicy.js
Created July 21, 2011 06:20
Super-simple flash policy file server
#!/usr/bin/env node
var net = require('net'),
sys = require('sys');
policy = '<?xml version="1.0"?>\n';
policy += '<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">\n';
policy += '<cross-domain-policy>\n';
policy += '<allow-access-from domain="*" to-ports="*"/>\n';
@theturtle32
theturtle32 / package.json
Created July 20, 2011 05:30
Proof of Concept Integration of Socket.IO and WebSocket-Node
{
"name": "socket.io"
, "version": "0.7.7"
, "description": "Real-time apps made cross-browser & easy with a WebSocket-like API"
, "homepage": "http://socket.io"
, "keywords": ["websocket", "socket", "realtime", "socket.io", "comet", "ajax"]
, "author": "Guillermo Rauch <[email protected]>"
, "contributors": [
{ "name": "Guillermo Rauch", "email": "[email protected]" }
, { "name": "Arnout Kazemier", "email": "[email protected]" }