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

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

王林
Release: 2024-02-05 21:15:04
forward
1001 people have browsed it

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")
Copy after login

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!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template