Home  >  Article  >  Backend Development  >  How to implement socket.io server using echo server in Golang

How to implement socket.io server using echo server in Golang

王林
王林forward
2024-02-05 21:15:04922browse

How to implement socket.io server using echo server in Golang

Question content

I want to initialize the echo server

app := echo.New()
app.POST("/register", handlers.Register)
app.Start(":5000")

Then implement the socket.io server on the same port.

I tried to do dual servers, but it doesn't seem to work.


Correct answer


Check this example from repo

The above is the detailed content of How to implement socket.io server using echo server in Golang. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:stackoverflow.com. If there is any infringement, please contact admin@php.cn delete