jormungandr-bite/packages/iceshrimp-sdk/markdown/iceshrimp-sdk.channelconnection.md
Laura Hausmann 91dddc439f
[sdk] Rename iceshrimp-js package to iceshrimp-sdk
This resolves possible confusion between iceshrimp-js (this project) and iceshrimp-sdk (the package)
2024-07-23 23:15:19 +02:00

1.5 KiB

Home > iceshrimp-sdk > 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)