gosf icon indicating copy to clipboard operation
gosf copied to clipboard

how integrated gosf with echo framework

Open mobintmu opened this issue 3 years ago • 1 comments

I want to using GOSF socket.io with echo framework. and i want to add GOSF to router of echo. but it has conflict in port

e := echo.New()

e.Any("/socket.io/", func(context echo.Context) error { gosf.Startup(map[string]interface{}{"port": 1324})

return nil })

mobintmu avatar Jan 25 '21 14:01 mobintmu

i know that main target in this repository is making micro service and stand-alone chatroom but i think by remove part startHTTPServer(config, secure, address, port, path) in file https://github.com/ambelovsky/gosf/blob/master/main.go and add gosf.Startup(map[string]interface{}{"port": 1324}) to echo framework Perhaps it's work!

mobintmu avatar Jan 26 '21 07:01 mobintmu