Home > @rainway/native > PeerEvents
PeerEvents interface
Events emitted by Peer
Signature:
export interface PeerEvents
Properties
| Property | Type | Description |
|---|---|---|
| "connection-state-change" | (ev: PeerStateChangeEvent) => EventReturnType | Raised when the peer's connection state has changed. |
| "stream-request" | (ev: StreamRequestEvent) => EventReturnType | Raised when the remote peer announces a stream. |
| close | (ev: CloseEvent) => EventReturnType | Raised when the connection to Rainway has been closed. |
| datachannel | (ev: DataChannelEvent) => EventReturnType | Raised when the remote peer creates a data channel. |
