Skip to content

Commit

Permalink
Update deps, fix small bug in example app, and push to 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bminer committed Jul 29, 2019
1 parent 0e544c6 commit adc5979
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example-app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const http = require("http")
// Create new HTTP server using koa and a new WebSocketServer
let app = koa()
, server = http.createServer(app.callback() )
, socketServer = WebSocketServer({server: server});
, socketServer = new WebSocketServer({server: server});

// Save all connected `sockets`
var sockets = [];
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ws-wrapper",
"version": "2.0.0",
"version": "2.0.1",
"description": "Lightweight WebSocket wrapper lib with socket.io-like event handling, requests, and channels",
"main": "./lib/wrapper.js",
"browser": "./dist/index.js",
Expand All @@ -13,7 +13,7 @@
"koa": ">=1.2 <2",
"koa-router": ">=5.4 <6",
"module-concat": ">=2 <3",
"ws": "^1.1.1"
"ws": ">=3.3.1 <4"
},
"scripts": {
"prepublish": "npm run concat && npm run babel",
Expand Down

0 comments on commit adc5979

Please sign in to comment.