Home > @rainway/web > PeerEvents
PeerEvents interface
Signature:
export interface PeerEvents
Properties
Property | Type | Description |
---|---|---|
"connection-state-change" | (state: PeerState) => void | Promise<void> | Raised when the peers connection state has changed |
"stream-announcement" | (announcement: RainwayStreamAnnouncement) => void | Promise<void> | Raised when the remote peer announces a stream |
close | () => void | Promise<void> | Raised when the peer connection has been closed |
Methods
Method | Description |
---|---|
datachannel(dataChannel) | Raised when the remote peer creates a data channel |