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

王林
Release: 2024-02-05 21:15:04
forward
850 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 fromrepo

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!