wip: 0.2.2
1. rtc init
This commit is contained in:
14
internal/model/ws.go
Normal file
14
internal/model/ws.go
Normal file
@ -0,0 +1,14 @@
|
||||
package model
|
||||
|
||||
type WSMessageType string
|
||||
|
||||
const (
|
||||
WSMessageTypeOffer WSMessageType = "offer"
|
||||
WSMessageTypeCandidate WSMessageType = "candidate"
|
||||
)
|
||||
|
||||
type Message struct {
|
||||
Type WSMessageType `json:"type"`
|
||||
Time int64 `json:"time"`
|
||||
Body any `json:"body"`
|
||||
}
|
Reference in New Issue
Block a user