jormungandr-bite/packages/iceshrimp-js/markdown/iceshrimp-js.channelconnection.md
limepotato 4410989fa2
revert ba0e5eec93
revert ?
2024-06-17 18:18:03 +02:00

1.5 KiB

Home > iceshrimp-js > ChannelConnection

ChannelConnection class

Signature:

export declare abstract class Connection<
	Channel extends AnyOf<Channels> = any,
> extends EventEmitter<Channel["events"]> 

Extends: EventEmitter<Channel["events"]>

Constructors

Constructor Modifiers Description
(constructor)(stream, channel, name) Constructs a new instance of the Connection class

Properties

Property Modifiers Type Description
channel string
id abstract string
inCount number
name? string (Optional)
outCount number
stream protected Stream

Methods

Method Modifiers Description
dispose() abstract
send(type, body)