Section 5.5.27 Pipelines – Build the Hydra Chat System (Continued)
Hydrachat.go package hydrachat import ( "fmt" "net" "os" "os/signal" "syscall" "github.com/gopythor/udemy/Hydra/hlogger" ) var logger = hlogger.GetInstance() //Start hydra chat func Run(conneciton string) error { l, err := net.Listen("tcp", connection) r := CreateRoom("HydraChat") if err != nil { logger.Println("Error connection to chat client", err) return err } go func() { //Handle SIGINT and ..
Go/Mastering Go
2022. 3. 20. 05:21