Kui API Documentation - v11.0.0 / @kui-shell/plugin-bash-like / StdioChannelWebsocketSide
@kui-shell/plugin-bash-like.StdioChannelWebsocketSide
stdin/stdout channel
-
EventEmitter
↳
StdioChannelWebsocketSide
Channel
- addListener
- close
- emit
- eventNames
- getMaxListeners
- init
- listenerCount
- listeners
- off
- on
- once
- prependListener
- prependOnceListener
- rawListeners
- removeAllListeners
- removeEventListener
- removeListener
- send
- setMaxListeners
- listenerCount
• new StdioChannelWebsocketSide(wss
)
Name | Type |
---|---|
wss |
EventEmitter |
EventEmitter.constructor
plugins/plugin-bash-like/src/pty/stdio-channel.ts:46
• readyState: ReadyState
= ReadyState.CONNECTING
Channel.readyState
plugins/plugin-bash-like/src/pty/stdio-channel.ts:40
• Private
ws: Channel
plugins/plugin-bash-like/src/pty/stdio-channel.ts:42
• Private
Readonly
wss: EventEmitter
plugins/plugin-bash-like/src/pty/stdio-channel.ts:44
▪ Static
defaultMaxListeners: number
EventEmitter.defaultMaxListeners
node_modules/@types/node/events.d.ts:18
▸ addListener(event
, listener
): StdioChannelWebsocketSide
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.addListener
node_modules/@types/node/events.d.ts:20
▸ close(): void
Forcibly close the channel
void
Channel.close
plugins/plugin-bash-like/src/pty/stdio-channel.ts:144
▸ emit(event
, ...args
): boolean
Name | Type |
---|---|
event |
string | symbol |
...args |
any [] |
boolean
EventEmitter.emit
node_modules/@types/node/events.d.ts:32
▸ eventNames(): (string
| symbol
)[]
(string
| symbol
)[]
EventEmitter.eventNames
node_modules/@types/node/events.d.ts:33
▸ getMaxListeners(): number
number
EventEmitter.getMaxListeners
node_modules/@types/node/events.d.ts:29
▸ init(child
, pollInterval?
): Promise
<void
>
Name | Type | Default value |
---|---|---|
child |
ChildProcess |
undefined |
pollInterval |
number |
30000 |
Promise
<void
>
plugins/plugin-bash-like/src/pty/stdio-channel.ts:51
▸ listenerCount(type
): number
Name | Type |
---|---|
type |
string | symbol |
number
EventEmitter.listenerCount
node_modules/@types/node/events.d.ts:34
▸ listeners(event
): Function
[]
Name | Type |
---|---|
event |
string | symbol |
Function
[]
EventEmitter.listeners
node_modules/@types/node/events.d.ts:30
▸ off(event
, listener
): StdioChannelWebsocketSide
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.off
node_modules/@types/node/events.d.ts:26
▸ on(event
, listener
): StdioChannelWebsocketSide
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
Channel.on
EventEmitter.on
node_modules/@types/node/events.d.ts:21
▸ once(event
, listener
): StdioChannelWebsocketSide
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.once
node_modules/@types/node/events.d.ts:22
▸ prependListener(event
, listener
): StdioChannelWebsocketSide
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.prependListener
node_modules/@types/node/events.d.ts:23
▸ prependOnceListener(event
, listener
): StdioChannelWebsocketSide
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.prependOnceListener
node_modules/@types/node/events.d.ts:24
▸ rawListeners(event
): Function
[]
Name | Type |
---|---|
event |
string | symbol |
Function
[]
EventEmitter.rawListeners
node_modules/@types/node/events.d.ts:31
▸ removeAllListeners(event?
): StdioChannelWebsocketSide
Name | Type |
---|---|
event? |
string | symbol |
EventEmitter.removeAllListeners
node_modules/@types/node/events.d.ts:27
▸ removeEventListener(eventType
, handler
): void
Name | Type |
---|---|
eventType |
string |
handler |
any |
void
Channel.removeEventListener
plugins/plugin-bash-like/src/pty/stdio-channel.ts:174
▸ removeListener(event
, listener
): StdioChannelWebsocketSide
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.removeListener
node_modules/@types/node/events.d.ts:25
▸ send(msg
): void
emit 'message' on the other side
Name | Type |
---|---|
msg |
string |
void
Channel.send
plugins/plugin-bash-like/src/pty/stdio-channel.ts:150
▸ setMaxListeners(n
): StdioChannelWebsocketSide
Name | Type |
---|---|
n |
number |
EventEmitter.setMaxListeners
node_modules/@types/node/events.d.ts:28
▸ Static
listenerCount(emitter
, event
): number
deprecated
since v4.0.0
Name | Type |
---|---|
emitter |
EventEmitter |
event |
string | symbol |
number
EventEmitter.listenerCount
node_modules/@types/node/events.d.ts:17