mirror of
https://github.com/cadmium-im/zirconium-go.git
synced 2024-11-23 19:02:20 +00:00
18 lines
327 B
Go
18 lines
327 B
Go
|
package internal
|
||
|
|
||
|
import (
|
||
|
"github.com/ChronosX88/zirconium/internal/models"
|
||
|
"github.com/gorilla/websocket"
|
||
|
)
|
||
|
|
||
|
type OriginC2S struct {
|
||
|
wsConn *websocket.Conn
|
||
|
connID string
|
||
|
entityID *models.EntityID
|
||
|
deviceID *string
|
||
|
}
|
||
|
|
||
|
func (o *OriginC2S) Send(message models.BaseMessage) error {
|
||
|
return o.wsConn.WriteJSON(message)
|
||
|
}
|