diff --git a/client.go b/client.go new file mode 100644 index 0000000..fc54c95 --- /dev/null +++ b/client.go @@ -0,0 +1,9 @@ +package main + +type client interface { + Group() *group + Id() string + Username() string + pushConn(id string, conn upConnection, tracks []upTrack, label string) error + pushClient(id, username string, add bool) error +} diff --git a/group.go b/group.go index c3759e7..7f532ed 100644 --- a/group.go +++ b/group.go @@ -21,14 +21,6 @@ import ( "github.com/pion/webrtc/v2" ) -type client interface { - Group() *group - Id() string - Username() string - pushConn(id string, conn upConnection, tracks []upTrack, label string) error - pushClient(id, username string, add bool) error -} - type chatHistoryEntry struct { id string user string