Skip to content

Commit

Permalink
fix test script
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Dec 17, 2019
1 parent 6ac9c4a commit 0aa65a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class WSClient extends EventEmitter {
if (this.connectState !== 2) {
if (message === '\x00\x02') {
this.connectState = 2
this.emit('ready')
this.emit('connect')
} else {
this.emit('error', new Error('Client version mismatch.'))
}
Expand Down
2 changes: 1 addition & 1 deletion test/cases/ws-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function ({ HTTP_PORT }) {

ws.on('error', reject)

ws.on('ready', async () => {
ws.on('connect', async () => {
try {
{
const data = { 'Hello': 'World' }
Expand Down
2 changes: 1 addition & 1 deletion test/cases/wss-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function ({ HTTPS_PORT }) {

ws.on('error', reject)

ws.on('ready', async () => {
ws.on('connect', async () => {
try {
{
const data = { 'Hello': 'World' }
Expand Down

0 comments on commit 0aa65a8

Please sign in to comment.