diff --git a/README.md b/README.md index fb92e8d..cca57cf 100644 --- a/README.md +++ b/README.md @@ -38,3 +38,10 @@ ws.disconnect(function(data){ }) ``` + +### 判断是websocket否连接 +//ws.isConnect() //=> bool + +```js +ws.isConnect() //=> true | false +```