Skip to content

Instantly share code, notes, and snippets.

View 3rd-Eden's full-sized avatar
💭
I have approximate knowledge of many things

Arnout Kazemier 3rd-Eden

💭
I have approximate knowledge of many things
View GitHub Profile
this.io = {
version: '0.6',
setPath: function(path){
this.path = path;
// this is temporary until we get a fix for injecting Flash WebSocket javascript files dynamically,
// as io.js shouldn't be aware of specific transports.
if ('WebSocket' in window){
WebSocket.__swfLocation = path;
Caught exception: TypeError: Cannot call method 'writeHead' of undefined
[ 'TypeError: Cannot call method \'writeHead\' of undefined'
, ' at /home/node/node-service/releases/20100921215848/vendor/io.server/lib/socket.io/transports/websocket.js:121:21'
, ' at Array.forEach (native)'
, ' at [object Object]._proveReception (/home/node/node-service/releases/20100921215848/vendor/io.server/lib/socket.io/transports/websocket.js:113:12)'
, ' at [object Object]._onConnect (/home/node/node-service/releases/20100921215848/vendor/io.server/lib/socket.io/transports/websocket.js:85:11)'
, ' at [object Object].<anonymous> (/home/node/node-service/releases/20100921215848/vendor/io.server/lib/socket.io/client.js:17:7)'
, ' at [object Object].<anonymous> (/home/node/node-service/releases/20100921215848/vendor/io.server/lib/socket.io/transports/websocket.js:8:9)'
, ' at new <anonymous> (/home/node/node-service/releases/20100921215848/vendor/io.server/lib/socket.io/transports/flashsocket.js:7:12)'
, ' at
this.server.addListener('request', function(req, res){
req.addListener("error",function(){ console.log("req:error"); console.dir( arguments ) });
res.addListener("error",function(){ console.log("res:error"); console.dir( arguments ) });
req.socket.addListener("error",function(){ console.log("req:socket:error"); console.dir( arguments ) });
if (self.check(req, res)) return;
for (var i = 0, len = listeners.length; i < len; i++){
listeners[i].call(this, req, res);
}
});
/*! LAB.js (LABjs :: Loading And Blocking JavaScript)
v1.0.3 (c) Kyle Simpson + Safari & Minefield hacks & configfile loader by Arnout Kazemier
MIT License
*/
(function(global){
var sSTRING = "string", // constants used for compression optimization
sHEAD = "head",
sBODY = "body",
sSCRIPT = "script",
/*! LAB.js (LABjs :: Loading And Blocking JavaScript)
v1.0.3 (c) Kyle Simpson
MIT License
*/
(function(global){
var sSTRING = "string", // constants used for compression optimization
sHEAD = "head",
sBODY = "body",
sSCRIPT = "script",
(function($) {
$.fn.autoShortener = function(options){
// merge the options with the default settings before looping over each node that is
// found by the css selector engine
var settings = {
"length":10,
"message":"Show More"
};
if(options) $.extend(settings, options);
Socket.io::request req.socket error: {"message":"ECONNRESET, Connection reset by peer","stack":"Error: ECONNRESET, Connection reset by peer\n at Stream._readImpl (net:305:14)\n at IOWatcher.callback (net:455:24)\n at node.js:764:9","errno":131,"syscall":"read"}
Socket.io::request req.socket error: {"message":"ECONNRESET, Connection reset by peer","stack":"Error: ECONNRESET, Connection reset by peer\n at Stream._readImpl (net:305:14)\n at IOWatcher.callback (net:455:24)\n at node.js:764:9","errno":131,"syscall":"read"}
Socket.io::request req.socket error: {"message":"ECONNRESET, Connection reset by peer","stack":"Error: ECONNRESET, Connection reset by peer\n at Stream._readImpl (net:305:14)\n at IOWatcher.callback (net:455:24)\n at node.js:764:9","errno":131,"syscall":"read"}
Socket.io::request req.socket error: {"message":"ECONNRESET, Connection reset by peer","stack":"Error: ECONNRESET, Connection reset by peer\n at Stream._readImpl (net:305:14)\n at IOWatcher.callback (net:4
Caught exception: Error: assertion error
[ 'Error: assertion error'
, ' at node.js:30:17'
, ' at Timer.callback (net:150:29)'
, ' at node.js:764:9'
]
Initializing client with transport "flashsocket"
Client 5877707917243242 connected
268 wtf.. clients internally queued.
Initializing client with transport "flashsocket"
[ Oct 12 16:57:43 Stopping because service disabled. ]
[ Oct 12 16:57:43 Executing stop method (:kill). ]
[ Oct 12 16:57:43 Rereading configuration. ]
[ Oct 12 16:57:43 Rereading configuration. ]
[ Oct 12 16:57:43 Enabled. ]
[ Oct 12 16:57:43 Executing start method ("env `cat /home/node/node-service/profile` /usr/nodejs/v0.2.0/bin/node /home/node/node-service/releases/20101012165743/server.js"). ]
Speedo is booting up....
Socket.io::netserver request error: {"message":"ECONNRESET, Connection reset by peer","stack":"Error: ECONNRESET, Connection reset by peer\n at Stream._readImpl (net:305:14)\n at IOWatcher.callback (net:455:24)\n at node.js:764:9","errno":131,"syscall":"read"}
// our configuration object
var useragent = require("./vendor/useragent"),
Studio = require("./studio"),
recording = {},
online = {};
module.exports = function ioConnector( socket, db ){
// basic setup for socket.io connections
socket.on('connection', function(client){