package
Version:
v0.0.0-...-9402fd8
Opens a new window with list of versions in this module.
Published: Aug 17, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewChatClient returns a new chat client
type ChatMessage struct {
User string `json:"user"`
Message string `json:"message"`
}
TextChat is the service to handle all chat over websocket
NewTextChat spawns a new text chat
AddClient add a new chat client to TextChat
func (*TextChat) Handle ¶
Handle is main handler for TextChat
SendChatHistory sends chat history to all clients
Source Files
¶
Click to show internal directories.
Click to hide internal directories.