diff --git a/server/internal/session/session.go b/server/internal/session/session.go index be43d0f..d699753 100644 --- a/server/internal/session/session.go +++ b/server/internal/session/session.go @@ -104,13 +104,6 @@ func (session *Session) Send(v interface{}) error { return session.socket.Send(v) } -func (session *Session) Write(v interface{}) error { - if session.socket == nil { - return nil - } - return session.socket.Send(v) -} - func (session *Session) SignalAnswer(sdp string) error { if session.peer == nil { return nil diff --git a/server/internal/types/session.go b/server/internal/types/session.go index 9820584..bbba50c 100644 --- a/server/internal/types/session.go +++ b/server/internal/types/session.go @@ -21,7 +21,6 @@ type Session interface { SetPeer(peer Peer) error Address() string Kick(message string) error - Write(v interface{}) error Send(v interface{}) error SignalAnswer(sdp string) error SignalCandidate(data string) error