go-socket.io
api-mocked
go-socket.io | api-mocked | |
---|---|---|
3 | 5 | |
5,570 | 5 | |
- | - | |
4.5 | 0.0 | |
about 2 months ago | about 2 years ago | |
Go | Go | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-socket.io
-
Want to Know https://github.com/googollee/go-socket.io socket server version
I want to connect go socket server with flutter.I want to know which flutter client socket version https://github.com/googollee/go-socket.io support and socket server version.
-
How to use Redis pub/sub to handle socket.io sessions across multiple instances ?
Socket.io helps in delivering messages to client in real time. Behind the scene socket.io creates a bi-directional channel between server and client therefore enabling bidirectional communication between web client and server. For demo code I have used a golang server therefor i have used a golang library called go-socket.io . Some advance socket.io concepts which you should be aware are channel, event, namespace and rooms.
-
Go with socket.io
Have you tried this - https://github.com/googollee/go-socket.io
api-mocked
-
Go with socket.io
github.com(/ambelovsky/gosf-socketio) here: https://github.com/njones/api-mocked/blob/master/handler.socketio.go . I realize it's a bit convoluted ... let me know if you have questions.
-
A Mock API Server
try to follow go naming conventions. don't use underscores for function identifiers. this isn't python ( e.g. https://github.com/njones/api-mocked/blob/master/signal.go#L10 )
What are some alternatives?
websocket - A fast, well-tested and widely used WebSocket implementation for Go.
gosf-socketio - golang socket.io client and server
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Fiber - ⚡️ Express inspired web framework written in Go
melody - :notes: Minimalist websocket framework for Go
Beego - beego is an open-source, high-performance web framework for the Go programming language.
Iris - The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket:
Echo - High performance, minimalist Go web framework
GoSwagger - Swagger 2.0 implementation for go
Buffalo - Rapid Web Development w/ Go
go-kit - A standard library for microservices.
Glue - Glue - Robust Go and Javascript Socket Library (Alternative to Socket.io)