go-socket.io icon indicating copy to clipboard operation
go-socket.io copied to clipboard

go-socket.io client

Open phwolf opened this issue 3 years ago • 3 comments

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

phwolf avatar Jan 31 '22 13:01 phwolf

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

finaldzn avatar Feb 07 '22 15:02 finaldzn

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!

phwolf avatar Feb 07 '22 17:02 phwolf

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

finaldzn avatar Feb 08 '22 08:02 finaldzn