awesome-websocket
Advanced tools
Comparing version 0.0.14 to 0.0.17
@@ -0,2 +1,3 @@ | ||
require('coffee-script/register') | ||
module.exports.ReconnectingWebSocket = require("./src/reconnecting-websocket.litcoffee"); | ||
module.exports.AwesomeWebSocket = require("./src/awesome-websocket.litcoffee"); |
{ | ||
"name": "awesome-websocket", | ||
"version": "0.0.14", | ||
"version": "0.0.17", | ||
"description": "A WebSocket, with the extra awesome of client failover and autoreconnect", | ||
@@ -33,2 +33,6 @@ "keywords": [ | ||
"url": "https://github.com/wballard" | ||
}, | ||
{ | ||
"name": "Nick Swarr", | ||
"url": "https://github.com/nswarr" | ||
} | ||
@@ -42,6 +46,7 @@ ], | ||
"dependencies": { | ||
"ws": "0.4.31", | ||
"coffee-script": "^1.7.1", | ||
"coffeeify": "0.6.0", | ||
"lodash": "^2.4.1", | ||
"simplog": "0.1.0", | ||
"lodash": "^2.4.1", | ||
"coffeeify": "0.6.0" | ||
"ws": "0.4.31" | ||
}, | ||
@@ -48,0 +53,0 @@ "browserify": { |
@@ -43,4 +43,4 @@ | ||
```bash | ||
git clone https://github.com/igroff/ws-additions.git | ||
cd ws-additions/ | ||
git clone https://github.com/glg/awesome-websocket.git | ||
cd awesome-websocket/ | ||
make watch | ||
@@ -118,4 +118,4 @@ ``` | ||
npm install ws-additions | ||
browserify -r ws-additions --outfile www/js/reconn.js | ||
npm install awesome-websocket | ||
browserify -r awesome-websocket -i ws -i coffee-script/register --outfile www/js/reconn.js | ||
``` | ||
@@ -133,3 +133,3 @@ | ||
<script> | ||
var ReconnectingWebSocket = require("ws-additions").ReconnectingWebSocket; | ||
var ReconnectingWebSocket = require("awesome-websocket").ReconnectingWebSocket; | ||
var ws = new ReconnectingWebSocket("ws://localhost:8080/socket"); | ||
@@ -151,3 +151,3 @@ // now ws will reconnect in the event that the server busts, the only problem | ||
<script> | ||
var AwesomeWebSocket = require("ws-additions").AwesomeWebSocket; | ||
var AwesomeWebSocket = require("awesome-websocket").AwesomeWebSocket; | ||
var testWs = new AwesomeWebSocket([ | ||
@@ -168,3 +168,3 @@ "ws://localhost:8085/socket", | ||
<script> | ||
var AwesomeWebSocket = require("ws-additions").AwesomeWebSocket; | ||
var AwesomeWebSocket = require("awesome-websocket").AwesomeWebSocket; | ||
var testWs = new AwesomeWebSocket("ws://localhost:8085/socket"); | ||
@@ -185,3 +185,3 @@ testWs.send("this message is AWESOME!"); | ||
<script> | ||
var AwesomeWebSocket = require("ws-additions").AwesomeWebSocket; | ||
var AwesomeWebSocket = require("awesome-websocket").AwesomeWebSocket; | ||
var ws = new AwesomeWebSocket("ws://localhost:8080/socket") | ||
@@ -188,0 +188,0 @@ ws.onopen = function() { |
@@ -21,3 +21,3 @@ { | ||
"errorhandler": "1.1.1", | ||
"browserify": "4.2.0", | ||
"browserify": "5.9.1", | ||
"serve-static": "1.3.0", | ||
@@ -24,0 +24,0 @@ "coffeeify": "^0.6.0", |
function SocketServerController(port){ | ||
this.port = port; | ||
this.servers = {}; | ||
var ReconnectingWebSocket = require("ws-additions").ReconnectingWebSocket; | ||
var ws = new ReconnectingWebSocket("ws://localhost:" + this.port + "/socket"); | ||
@@ -6,0 +5,0 @@ this.connected = Q.defer(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
551334
33
11077
5
+ Addedcoffee-script@^1.7.1
+ Addedcoffee-script@1.12.7(transitive)