Class: ChannelMain

Channel.ChannelMain

Table of contents

Constructors

Properties

Methods

Constructors

constructor

• new ChannelMain(): ChannelMain

Returns

ChannelMain

Properties

eventQueue

• eventQueue: EventMessage[]

Defined in

webR/chan/channel.ts:36


initialised

• Abstract initialised: Promise<unknown>

Defined in

webR/chan/channel.ts:41


inputQueue

• inputQueue: AsyncQueue<Message>

Defined in

webR/chan/channel.ts:33


outputQueue

• outputQueue: AsyncQueue<Message>

Defined in

webR/chan/channel.ts:34


systemQueue

• systemQueue: AsyncQueue<Message>

Defined in

webR/chan/channel.ts:35

Methods

close

▸ close(): void

Returns

void

Defined in

webR/chan/channel.ts:42


emit

▸ emit(msg): void

Parameters

Name Type
msg Message

Returns

void

Defined in

webR/chan/channel.ts:43


flush

▸ flush(): Promise<Message[]>

Returns

Promise<Message[]>

Defined in

webR/chan/channel.ts:50


interrupt

▸ interrupt(): void

Returns

void

Defined in

webR/chan/channel.ts:44


putClosedMessage

▸ putClosedMessage(): void

Returns

void

Defined in

webR/chan/channel.ts:79


read

▸ read(): Promise<Message>

Returns

Promise<Message>

Defined in

webR/chan/channel.ts:46


readSystem

▸ readSystem(): Promise<Message>

Returns

Promise<Message>

Defined in

webR/chan/channel.ts:58


request

▸ request(msg, transferables?): Promise<WebRPayload>

Parameters

Name Type
msg Message
transferables? [Transferable]

Returns

Promise<WebRPayload>

Defined in

webR/chan/channel.ts:69


resolveResponse

▸ resolveResponse(msg): void

Parameters

Name Type
msg Response

Returns

void

Defined in

webR/chan/channel.ts:84


write

▸ write(msg): void

Parameters

Name Type
msg Message

Returns

void

Defined in

webR/chan/channel.ts:62