googollee / go-socket.io

socket.io library for golang, a realtime application framework.
Other
5.75k stars 840 forks source link

go-socket.io client #526

Closed phwolf closed 1 month ago

phwolf commented 2 years ago

Hi, I would like to use go-socket.io to create a socket.io client in go. In the examples I can only see go-socket.io servers and clients in javascript. Is it possible to write a client in go using go-socket.io? Thanks a lot, best regards

finaldzn commented 2 years ago

Hey have you found how to use the library as a client or a go socket client that works with the library ?

phwolf commented 2 years ago

You could try using go-engine.io (which is used by go-socket.io) https://github.com/googollee/go-engine.io/blob/master/demo/client/client.go for the client. However this does not support the latest socket.io version v4!

finaldzn commented 2 years ago

Ok thank you, I ended up building a microservice in js that uses socket io and use my go program with REST requests