remove duplicate function.
This commit is contained in:
parent
04ef2d3081
commit
dfcb817eec
@ -104,13 +104,6 @@ func (session *Session) Send(v interface{}) error {
|
|||||||
return session.socket.Send(v)
|
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 {
|
func (session *Session) SignalAnswer(sdp string) error {
|
||||||
if session.peer == nil {
|
if session.peer == nil {
|
||||||
return nil
|
return nil
|
||||||
|
@ -21,7 +21,6 @@ type Session interface {
|
|||||||
SetPeer(peer Peer) error
|
SetPeer(peer Peer) error
|
||||||
Address() string
|
Address() string
|
||||||
Kick(message string) error
|
Kick(message string) error
|
||||||
Write(v interface{}) error
|
|
||||||
Send(v interface{}) error
|
Send(v interface{}) error
|
||||||
SignalAnswer(sdp string) error
|
SignalAnswer(sdp string) error
|
||||||
SignalCandidate(data string) error
|
SignalCandidate(data string) error
|
||||||
|
Reference in New Issue
Block a user