Socket
Socket
Sign inDemoInstall

sockjs

Package Overview
Dependencies
6
Maintainers
5
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.19 to 0.3.20

2

lib/sockjs.js

@@ -181,3 +181,3 @@ // Generated by CoffeeScript 1.12.7

},
sockjs_url: 'https://cdn.jsdelivr.net/sockjs/1/sockjs.min.js'
sockjs_url: 'https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js'
};

@@ -184,0 +184,0 @@ if (user_options) {

@@ -60,11 +60,6 @@ // Generated by CoffeeScript 1.12.7

try {
res.write(r.join('\r\n'));
return res.write(r.join('\r\n'));
} catch (error1) {
x = error1;
}
try {
return res.end();
} catch (error1) {
x = error1;
}
};

@@ -71,0 +66,0 @@ return res.setHeader = function(k, v) {

{
"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.19",
"version": "0.3.20",
"author": "Marek Majkowski",

@@ -21,6 +21,7 @@ "bugs": {

"faye-websocket": "^0.10.0",
"uuid": "^3.0.1"
"uuid": "^3.4.0",
"websocket-driver": "0.6.5"
},
"devDependencies": {
"coffee-script": "^1.8.0"
"coffeescript": "^1.12.7"
},

@@ -27,0 +28,0 @@ "homepage": "https://github.com/sockjs/sockjs-node",

@@ -51,3 +51,3 @@ [![NPM version](https://badge.fury.io/js/sockjs.svg)](http://badge.fury.io/js/sockjs)

var echo = sockjs.createServer({ sockjs_url: 'http://cdn.jsdelivr.net/sockjs/1.0.1/sockjs.min.js' });
var echo = sockjs.createServer();
echo.on('connection', function(conn) {

@@ -94,3 +94,3 @@ conn.on('data', function(message) {

<dl>
<dt>sockjs_url (string, required)</dt>
<dt>sockjs_url (string)</dt>
<dd>Transports which don't support cross-domain communication natively

@@ -104,3 +104,3 @@ ('eventsource' to name one) use an iframe trick. A simple page is

its url (if you're unsure, point it to
<a href="http://cdn.jsdelivr.net/sockjs/1.0.1/sockjs.min.js">
<a href="https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js">
the latest minified SockJS client release</a>, this is the default).

@@ -107,0 +107,0 @@ You must explicitly specify this url on the server side for security

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc