mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
remove unused websocket functions.
This commit is contained in:
parent
e852afcf2a
commit
06282d8064
@ -135,10 +135,6 @@ func (manager *SessionManager) Destroy(id string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (manager *SessionManager) Clear() error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (manager *SessionManager) Broadcast(v interface{}, exclude interface{}) error {
|
func (manager *SessionManager) Broadcast(v interface{}, exclude interface{}) error {
|
||||||
for id, session := range manager.members {
|
for id, session := range manager.members {
|
||||||
if !session.connected {
|
if !session.connected {
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
@ -38,7 +37,6 @@ type SessionManager interface {
|
|||||||
Members() []*Member
|
Members() []*Member
|
||||||
Admins() []*Member
|
Admins() []*Member
|
||||||
Destroy(id string) error
|
Destroy(id string) error
|
||||||
Clear() error
|
|
||||||
Broadcast(v interface{}, exclude interface{}) error
|
Broadcast(v interface{}, exclude interface{}) error
|
||||||
OnHost(listener func(id string))
|
OnHost(listener func(id string))
|
||||||
OnHostCleared(listener func(id string))
|
OnHostCleared(listener func(id string))
|
||||||
|
Loading…
Reference in New Issue
Block a user