Skip to content

Commit

Permalink
feat(server): enabled native Goroutines to improve performance and en…
Browse files Browse the repository at this point in the history
…able anticipated cancels
  • Loading branch information
will-moss committed May 8, 2024
1 parent 88f2344 commit dd32d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ func main() {

// WS - Handle user commands
_server.Melody.HandleMessage(func(session *melody.Session, message []byte) {
// go _server.Handle(session, message)
_server.Handle(session, message)
go _server.Handle(session, message)
// _server.Handle(session, message)
})

// WS - Handle user disconnection
Expand Down

0 comments on commit dd32d8d

Please sign in to comment.