Versions in this module Expand all Collapse all v1 v1.0.0 May 28, 2019 Changes in this version + var EmptyPacket = WSPacket + type Client struct + Done chan struct{} + func NewClient(conn *websocket.Conn) *Client + func (c *Client) Close() + func (c *Client) Heartbeat() + func (c *Client) Listen() + func (c *Client) Receive(id string, f func(response WSPacket) (request WSPacket)) + func (c *Client) Send(request WSPacket, callback func(response WSPacket)) + func (c *Client) SyncSend(request WSPacket) (response WSPacket) + type WSPacket struct + Data string + ID string + PacketID string + PlayerIndex int + RoomID string + SessionID string + TargetHostID string