refactor WebRTC antipatterns.

This commit is contained in:
Miroslav Šedivý
2020-10-31 21:46:29 +01:00
parent b1b5a70c64
commit cca147859d
4 changed files with 17 additions and 23 deletions

View File

@ -16,10 +16,10 @@ type Session interface {
Connected() bool
Member() *Member
SetMuted(muted bool)
SetName(name string) error
SetConnected(connected bool)
SetSocket(socket WebSocket) error
SetPeer(peer Peer) error
SetName(name string)
SetConnected()
SetSocket(socket WebSocket)
SetPeer(peer Peer)
Address() string
Disconnect(message string) error
Send(v interface{}) error