Class: palava.Peer

Defined in: coffee/peer.coffee
Inherits: EventEmitter

Overview

Class representing a participant in a room

Direct Known Subclasses

palava.RemotePeer palava.LocalPeer

Instance Method Summary

Constructor Details

# (void) constructor(id, status)

Parameters:

  • id (String) ID of the participant
  • status (Object) An object conataining state which is exchanged through the palava machine

Options Hash: (staus):

  • name (String) The chosen name of the participant

Instance Method Details

# (Boolean) hasAudio() Bound

Checks whether the participant is sending audio

Returns:

  • (Boolean) — true if participant is sending audio

# (Boolean) isMuted() Bound

Checks whether the participant is muted

Returns:

  • (Boolean) — true if participant is muted

# (Boolean) isReady() Bound

Checks whether the peer is ready

Returns:

  • (Boolean) — true if participant is ready

# (Boolean) isLocal() Bound

Checks whether the participant is local

Returns:

  • (Boolean) — true if participant is the local peer

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: