IStreamingTransportServer interface
定義串流傳輸伺服器特性的抽象概念。 可能的範例實作包括 WebSocket 傳輸伺服器或 NamedPipe 傳輸伺服器。
屬性
| is |
方法
| disconnect() | |
| send(Streaming |
|
| start(() => void) |
屬性詳細資料
isConnected
isConnected?: boolean
屬性值
boolean
方法詳細資料
disconnect()
function disconnect()
send(StreamingRequest)
function send(request: StreamingRequest): Promise<IReceiveResponse>
參數
- request
- StreamingRequest
傳回
Promise<IReceiveResponse>
start(() => void)
function start(onListen?: () => void): Promise<string>
參數
- onListen
-
() => void
傳回
Promise<string>