Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how integrated gosf with echo framework #11

Open
mobintmu opened this issue Jan 25, 2021 · 1 comment
Open

how integrated gosf with echo framework #11

mobintmu opened this issue Jan 25, 2021 · 1 comment

Comments

@mobintmu
Copy link

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant