Chat updates (#92)
* Send PONG responses to PINGs * Split out client IDs for viewer counts vs. websocket IDs * WIP username change event * Display username changes * Revert commented out code * Add support for building from the current branch * Fix PONG * Make username changes have a unique ID * Add a version param to js to cachebust
This commit is contained in:
10
models/nameChangeEvent.go
Normal file
10
models/nameChangeEvent.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package models
|
||||
|
||||
//NameChangeEvent represents a user changing their name in chat
|
||||
type NameChangeEvent struct {
|
||||
OldName string `json:"oldName"`
|
||||
NewName string `json:"newName"`
|
||||
Image string `json:"image"`
|
||||
Type string `json:"type"`
|
||||
ID string `json:"id"`
|
||||
}
|
||||
Reference in New Issue
Block a user