add test case

This commit is contained in:
Sheng Chen
2018-02-08 16:16:54 +08:00
parent a3bc2e2ac8
commit 10d7c896cc

View File

@@ -180,8 +180,18 @@ function clientTest2() {
}
function testClientAbortApi() {
var ipArray = getLocalIpArray();
var client = new websocket.client();
client.connect(`ws://${ipArray[0]}:8888`, undefined, undefined, undefined, {
localAddress: ipArray[0]
});
client.abort();
}
{
console.log(`websocket test start.`);
serverTest2();
clientTest2();
testClientAbortApi();
}