Browse Source

add getter

Paul 5 years ago
parent
commit
625288beb9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/index.ts

+ 1
- 1
src/index.ts View File

@@ -123,7 +123,7 @@ class Client {
123 123
   }
124 124
 
125 125
   // 获取socket的链接状态
126
-  public getReadyState(): number {
126
+  public get readyState(): number {
127 127
     return this.socket.readyState;
128 128
   }
129 129