zirconium-go/internal/origin_c2s.go

18 lines
327 B
Go
Raw Normal View History

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)
}