Decouple chat from core and add chat rest api (#25)
* Decouple the chat package from the core * Add rest api endpoints for the chat aspect
This commit is contained in:
8
models/chatListener.go
Normal file
8
models/chatListener.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package models
|
||||
|
||||
//ChatListener represents the listener for the chat server
|
||||
type ChatListener interface {
|
||||
ClientAdded(clientID string)
|
||||
ClientRemoved(clientID string)
|
||||
MessageSent(message ChatMessage)
|
||||
}
|
||||
Reference in New Issue
Block a user