mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-28 18:06:20 +02:00
ignore irrelevant legacy ws events.
This commit is contained in:
parent
cd87c480f5
commit
a569f72087
1 changed files with 8 additions and 0 deletions
|
@ -432,6 +432,10 @@ func (s *session) wsToClient(msg []byte) error {
|
|||
return nil
|
||||
|
||||
// Signal Events
|
||||
case event.SIGNAL_VIDEO, event.SIGNAL_AUDIO:
|
||||
// ignore video and audio signals, because they are not part of the legacy protocol
|
||||
return nil
|
||||
|
||||
case event.SIGNAL_OFFER:
|
||||
request := &message.SignalDescription{}
|
||||
err := json.Unmarshal(data.Payload, request)
|
||||
|
@ -543,6 +547,10 @@ func (s *session) wsToClient(msg []byte) error {
|
|||
}
|
||||
|
||||
// Chat Events
|
||||
case chat.CHAT_INIT:
|
||||
// ignore chat init, because it is not part of the legacy protocol
|
||||
return nil
|
||||
|
||||
case chat.CHAT_MESSAGE:
|
||||
request := &chat.Message{}
|
||||
err := json.Unmarshal(data.Payload, request)
|
||||
|
|
Loading…
Add table
Reference in a new issue