Created
September 25, 2022 17:27
-
-
Save percybolmer/4dc4861b142f0394ee55f874fb1da48f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Client is a websocket client, basically a frontend visitor | |
type Client struct { | |
// the websocket connection | |
connection *websocket.Conn | |
// manager is the manager used to manage the client | |
manager *Manager | |
// egress is used to avoid concurrent writes on the WebSocket | |
egress chan Event | |
// chatroom is used to know what room user is in | |
chatroom string | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment