HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - PeerEvents

Home > @rainway/web > PeerEvents

PeerEvents interface

Signature:

export interface PeerEvents 

Properties

PropertyTypeDescription
"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

MethodDescription
datachannel(dataChannel)Raised when the remote peer creates a data channel