Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { PlayerID uint64 PlayerName string StateLock sync.RWMutex State *ClientState }
func (*Client) SafeState ¶
func (c *Client) SafeState() *ClientState
type ClientState ¶
func (*ClientState) SendError ¶
func (s *ClientState) SendError(err *socket.Response_Error)
func (*ClientState) SendMessage ¶
func (s *ClientState) SendMessage(msg *socket.Response)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) BroadcastMessage ¶
func (*Server) RegisterHandlers ¶
func (s *Server) RegisterHandlers(router fiber.Router)
Click to show internal directories.
Click to hide internal directories.