Versions in this module Expand all Collapse all v1 v1.0.1 May 20, 2020 v1.0.0 May 20, 2020 Changes in this version + const BinaryMessage + const PacketTypeClass + const PacketTypeHeartbeat + const PacketTypeJSON + const TextMessage + type ConnData interface + GetConnID func() string + Send func(packetBody []byte) + Start func() + Stop func() + func NewConnData(co *gorillaWebsocket.Conn, connecLostChan chan string, ...) (ConnData, error) + type ReceivePacketData struct + ConnID string + MessageType int + Packet []byte + type SendPacketData struct + type WebsocketService interface + Destroy func() + Disconnect func(id string) error + GetLostConnIDChan func() <-chan string + GetReceivePacketChan func() <-chan *ReceivePacketData + Send func(receiverIDs []string, sentPacket []byte) error + Start func() error + Stop func() error + func NewWebsocketService(addresss, portt string, aesKey []byte, connectPoolCapacity int, ...) (WebsocketService, error)