
committed by
Kara Erickson

parent
7b3bcc23af
commit
5eb7426216
14
packages/zone.js/test/ws-client.js
Normal file
14
packages/zone.js/test/ws-client.js
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
const ws = require('nodejs-websocket');
|
||||
|
||||
const conn = ws.connect('ws://localhost:8001', {}, function() {
|
||||
conn.send('close');
|
||||
conn.close();
|
||||
});
|
Reference in New Issue
Block a user