sockjs
Advanced tools
Comparing version 0.3.17 to 0.3.18
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.11.0 | ||
(function() { | ||
@@ -17,4 +17,4 @@ var utils; | ||
return res.write(payload + '\n'); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
} | ||
@@ -21,0 +21,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.11.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var iframe_template, utils; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.11.0 | ||
(function() { | ||
@@ -34,4 +34,4 @@ var App, Listener, Server, chunking_test, events, fs, generate_dispatcher, iframe, sockjsVersion, trans_eventsource, trans_htmlfile, trans_jsonp, trans_websocket, trans_xhr, utils, webjs, | ||
pkg = fs.readFileSync(__dirname + '/../package.json', 'utf-8'); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
} | ||
@@ -38,0 +38,0 @@ if (pkg) { |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.11.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var EventSourceReceiver, transport, utils, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.11.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var HtmlFileReceiver, iframe_template, transport, utils, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.11.0 | ||
(function() { | ||
@@ -62,4 +62,4 @@ var JsonpReceiver, transport, | ||
d = JSON.parse(query); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
throw { | ||
@@ -76,4 +76,4 @@ status: 500, | ||
d = JSON.parse(d); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
throw { | ||
@@ -80,0 +80,0 @@ status: 500, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.11.0 | ||
(function() { | ||
@@ -65,4 +65,4 @@ var FayeWebsocket, RawWebsocketSessionReceiver, Transport, WebSocketReceiver, transport, utils, | ||
this.connection.setNoDelay(true); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
} | ||
@@ -97,4 +97,4 @@ this.ws.addEventListener('message', (function(_this) { | ||
message = JSON.parse(payload); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
return this.didClose(3000, 'Broken framing.'); | ||
@@ -121,4 +121,4 @@ } | ||
return true; | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
} | ||
@@ -140,4 +140,4 @@ } | ||
this.ws.close(status, reason, false); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
} | ||
@@ -238,4 +238,4 @@ this.ws = null; | ||
this.ws.close(1000, "Normal closure", false); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
} | ||
@@ -242,0 +242,0 @@ this.ws = null; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.11.0 | ||
(function() { | ||
@@ -60,4 +60,4 @@ var XhrPollingReceiver, XhrStreamingReceiver, transport, utils, | ||
d = JSON.parse(data); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
throw { | ||
@@ -64,0 +64,0 @@ status: 500, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.11.0 | ||
(function() { | ||
@@ -156,4 +156,4 @@ var GenericReceiver, MAP, ResponseReceiver, Session, SockJSConnection, Transport, closeFrame, register, stream, utils, uuid, | ||
address = socket.address(); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
} | ||
@@ -389,4 +389,4 @@ if (remoteAddress) { | ||
this.request.connection.setKeepAlive(true, 5000); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
} | ||
@@ -406,4 +406,4 @@ ResponseReceiver.__super__.constructor.call(this, this.request.connection); | ||
r = true; | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
} | ||
@@ -421,4 +421,4 @@ if (this.max_response_size && this.curr_response_size >= this.max_response_size) { | ||
this.response.end(); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error) { | ||
x = error; | ||
} | ||
@@ -425,0 +425,0 @@ return this.response = null; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.11.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var array_intersection, crypto, escapable, lookup, unroll_lookup; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.9.3 | ||
// Generated by CoffeeScript 1.11.0 | ||
(function() { | ||
@@ -25,4 +25,4 @@ var GenericApp, execute_request, fake_response, fs, http, querystring, url, utils; | ||
return results; | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error1) { | ||
x = error1; | ||
if (typeof x === 'object' && 'status' in x) { | ||
@@ -62,9 +62,9 @@ if (x.status === 0) { | ||
res.write(r.join('\r\n')); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error1) { | ||
x = error1; | ||
} | ||
try { | ||
return res.end(); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error1) { | ||
x = error1; | ||
} | ||
@@ -155,4 +155,4 @@ }; | ||
res.end("500 - Internal Server Error"); | ||
} catch (_error) { | ||
x = _error; | ||
} catch (error1) { | ||
x = error1; | ||
} | ||
@@ -167,3 +167,3 @@ this.log('error', 'Exception on "' + req.method + ' ' + req.href + '" in filter "' + req.last_fun + '":\n' + (x.stack || x)); | ||
td = (new Date()) - req.start_date; | ||
this.log('info', req.method + ' ' + req.url + ' ' + td + 'ms ' + (res.finished ? res._header.split('\r')[0].split(' ')[1] : '(unfinished)')); | ||
this.log('info', req.method + ' ' + req.url + ' ' + td + 'ms ' + (res.finished ? res.statusCode : '(unfinished)')); | ||
return data; | ||
@@ -170,0 +170,0 @@ }; |
{ | ||
"name": "sockjs", | ||
"description": "SockJS-node is a server counterpart of SockJS-client a JavaScript library that provides a WebSocket-like object in the browser. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server.", | ||
"version": "0.3.17", | ||
"version": "0.3.18", | ||
"author": "Marek Majkowski", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -386,3 +386,3 @@ [![NPM version](https://badge.fury.io/js/sockjs.svg)](http://badge.fury.io/js/sockjs) | ||
make test_deps | ||
./venv/bin/python sockjs-protocol-0.3.py | ||
./venv/bin/python sockjs-protocol.py | ||
@@ -389,0 +389,0 @@ For details see |
Sorry, the diff of this file is not supported yet
108046