ambelovsky / gosf

Go SocketIO API Framework
http://gosf.io
MIT License
96 stars 14 forks source link

how integrated gosf with echo framework #11

Open mobintmu opened 3 years ago

mobintmu commented 3 years ago

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 commented 3 years ago

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!