Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created September 25, 2022 17:25
Show Gist options
  • Save percybolmer/2dd46610baabf7d38529f6ba012204cf to your computer and use it in GitHub Desktop.
Save percybolmer/2dd46610baabf7d38529f6ba012204cf to your computer and use it in GitHub Desktop.
// setupEventHandlers configures and adds all handlers
func (m *Manager) setupEventHandlers() {
m.handlers[EventSendMessage] = SendMessageHandler
m.handlers[EventChangeRoom] = ChatRoomHandler
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment