Skip to content

Commit

Permalink
refactor: Custom DataConnection classes can be plugged-in at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgloning committed Aug 6, 2023
1 parent 4cc1c81 commit b6d3fdd
Show file tree
Hide file tree
Showing 13 changed files with 464 additions and 444 deletions.
4 changes: 2 additions & 2 deletions lib/baseconnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ export abstract class BaseConnection<
connectionId: string;

peerConnection: RTCPeerConnection;
abstract get dataChannel(): RTCDataChannel;
dataChannel: RTCDataChannel;

abstract get type(): ConnectionType;

/**
* The optional label passed in or assigned by PeerJS when the connection was initiated.
*/
abstract readonly label: string;
label: string;

/**
* Whether the media connection is active (e.g. your call has been answered).
Expand Down
Loading

0 comments on commit b6d3fdd

Please sign in to comment.