Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e82d3464d | |||
| e4962db994 | |||
| 3f2f9b70a8 | |||
| 5f711f0892 | |||
| 17cf70f15d | |||
| 5c2a1849a1 | |||
| d892d3bad5 | |||
| 43656559b0 |
@@ -0,0 +1,41 @@
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node:
|
||||
- '0.8'
|
||||
- '0.10'
|
||||
- '0.12'
|
||||
- '4'
|
||||
- '6'
|
||||
- '8'
|
||||
- '10'
|
||||
- '12'
|
||||
- '14'
|
||||
- '16'
|
||||
- '18'
|
||||
- '20'
|
||||
name: node.js v${{ matrix.node }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
|
||||
- if: matrix.node == '0.8'
|
||||
run: npm conf set strict-ssl false
|
||||
|
||||
- run: node --version
|
||||
- run: npm install
|
||||
|
||||
- run: npm install 'nopt@5'
|
||||
- run: rm -rf node_modules/jstest/node_modules/nopt
|
||||
|
||||
- run: npm test
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
sudo: false
|
||||
language: node_js
|
||||
|
||||
node_js:
|
||||
- "0.8"
|
||||
- "0.10"
|
||||
- "0.12"
|
||||
- "4"
|
||||
- "5"
|
||||
- "6"
|
||||
- "7"
|
||||
- "8"
|
||||
- "9"
|
||||
- "10"
|
||||
- "11"
|
||||
- "12"
|
||||
|
||||
before_install:
|
||||
- '[ "${TRAVIS_NODE_VERSION}" = "0.8" ] && npm install -g npm@~1.4.0 || true'
|
||||
@@ -1,3 +1,9 @@
|
||||
### 0.7.4 / 2020-05-22
|
||||
|
||||
- Avoid crashing if `process.version` does not contain any digits
|
||||
- Emit `ping` and `pong` events from the `Server` driver
|
||||
- Require http-parser-js >=0.5.1 which fixes the bug we addressed in 0.7.3
|
||||
|
||||
### 0.7.3 / 2019-06-13
|
||||
|
||||
- Cap version of http-parser-js below 0.4.11, which introduced a bug that
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
Copyright 2010-2019 James Coglan
|
||||
Copyright 2010-2020 James Coglan
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# websocket-driver [](https://travis-ci.org/faye/websocket-driver-node)
|
||||
# websocket-driver
|
||||
|
||||
This module provides a complete implementation of the WebSocket protocols that
|
||||
can be hooked up to any I/O stream. It aims to simplify things by decoupling the
|
||||
|
||||
@@ -14,7 +14,7 @@ var Server = function(options) {
|
||||
util.inherits(Server, Base);
|
||||
|
||||
var instance = {
|
||||
EVENTS: ['open', 'message', 'error', 'close'],
|
||||
EVENTS: ['open', 'message', 'error', 'close', 'ping', 'pong'],
|
||||
|
||||
_bindEventListeners: function() {
|
||||
this.messages.on('error', function() {});
|
||||
|
||||
@@ -96,9 +96,9 @@ HttpParser.METHODS = {
|
||||
32: 'UNLINK'
|
||||
};
|
||||
|
||||
var VERSION = (process.version || '')
|
||||
.match(/[0-9]+/g)
|
||||
.map(function(n) { return parseInt(n, 10) });
|
||||
var VERSION = process.version
|
||||
? process.version.match(/[0-9]+/g).map(function(n) { return parseInt(n, 10) })
|
||||
: [];
|
||||
|
||||
if (VERSION[0] === 0 && VERSION[1] === 12) {
|
||||
HttpParser.METHODS[16] = 'REPORT';
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
"websocket"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"version": "0.7.3",
|
||||
"version": "0.7.4",
|
||||
"engines": {
|
||||
"node": ">=0.8.0"
|
||||
},
|
||||
@@ -16,7 +16,7 @@
|
||||
],
|
||||
"main": "./lib/websocket/driver",
|
||||
"dependencies": {
|
||||
"http-parser-js": ">=0.4.0 <0.4.11",
|
||||
"http-parser-js": ">=0.5.1",
|
||||
"safe-buffer": ">=5.1.0",
|
||||
"websocket-extensions": ">=0.1.1"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user