ConnectionTransport 接口
¥ConnectionTransport interface
签名
¥Signature
export interface ConnectionTransport
属性
¥Properties
属性 | 修饰符 | 类型 | 描述 | 默认 |
|---|---|---|---|---|
| onclose |
| () => 无效 | ||
| onmessage |
| (消息:字符串)=>无效 |
方法
¥Methods
方法 | 描述 |
|---|---|
| close() | |
| send(message) |
¥ConnectionTransport interface
¥Signature
export interface ConnectionTransport
¥Properties
属性 | 修饰符 | 类型 | 描述 | 默认 |
|---|---|---|---|---|
| onclose |
| () => 无效 | ||
| onmessage |
| (消息:字符串)=>无效 |
¥Methods
方法 | 描述 |
|---|---|
| close() | |
| send(message) |