ambelovsky / gosf

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

Running gosf server and gin gonic server together #17

Open mrredo opened 1 year ago

mrredo commented 1 year ago

Now i can only run gin gonic or gosf server not them both

wole-ada commented 1 year ago

ran into this as well but running the gosf server in a go subroutine fixed it for me


...

// start socket server in go subroutine
go func() {
    gosf.Startup(...)
}()

// start the gin gonic server in the main thread
...