sockjs
Advanced tools
Comparing version 0.3.7 to 0.3.8
@@ -61,2 +61,7 @@ (function() { | ||
}; | ||
if (typeof this.options.base_url === 'function') { | ||
info.base_url = this.options.base_url(); | ||
} else if (this.options.base_url) { | ||
info.base_url = this.options.base_url; | ||
} | ||
res.setHeader('Content-Type', 'application/json; charset=UTF-8'); | ||
@@ -63,0 +68,0 @@ res.writeHead(200); |
@@ -250,2 +250,3 @@ (function() { | ||
Session.bySessionId = function(session_id) { | ||
if (!session_id) return null; | ||
return MAP[session_id] || null; | ||
@@ -252,0 +253,0 @@ }; |
{ | ||
"name" : "sockjs", | ||
"author" : "Marek Majkowski", | ||
"version" : "0.3.7", | ||
"version" : "0.3.8", | ||
"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.", | ||
@@ -13,3 +13,3 @@ "keywords" : ["websockets", "websocket"], | ||
"node-uuid" : "1.3.3", | ||
"faye-websocket" : "0.4.4" | ||
"faye-websocket" : "0.7.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "devDependencies": { |
@@ -49,3 +49,3 @@ SockJS family: | ||
An simplified echo SockJS server could look more or less like: | ||
A simplified echo SockJS server could look more or less like: | ||
@@ -334,3 +334,3 @@ ```javascript | ||
There are two issues that needs to be considered when planning a | ||
There are two issues that need to be considered when planning a | ||
non-trivial SockJS-node deployment: WebSocket-compatible load balancer | ||
@@ -337,0 +337,0 @@ and sticky sessions (aka session affinity). |
Sorry, the diff of this file is not supported yet
1620
96272
39
+ Addedfaye-websocket@0.7.0(transitive)
+ Addedhttp-parser-js@0.5.8(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedwebsocket-driver@0.7.4(transitive)
+ Addedwebsocket-extensions@0.1.4(transitive)
- Removedfaye-websocket@0.4.4(transitive)
Updatedfaye-websocket@0.7.0