ambelovsky / gosf

Go SocketIO API Framework
http://gosf.io
MIT License
98 stars 14 forks source link

act as client #6

Closed celevra closed 4 years ago

celevra commented 4 years ago

Hi,

looked into the documentation and the code. am i right that gosf can't act as an socket.io client from within go?

regards

Celevra

ambelovsky commented 4 years ago

Hi Celevra,

Yes. Please see http://gosf.io/#consuming-a-microservice

You can replace the request object with your own custom request type if you do not have a gosf server on the other end.

Enviado do meu iPhone

Em 30 de ago de 2020, à(s) 3:34 PM, celevra notifications@github.com escreveu:

 Hi,

looked into the documentation and the code. am i right that gosf can't act as an socket.io client from within go?

regards

Celevra

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

celevra commented 4 years ago

thank you for your fast answer. if i'm looking in the right direction its only possible do send data to the Server not to listen for incoming messages like

io.on("message",function(msg) {
    console.log(msg);
})
celevra commented 4 years ago

ok my fault, i think i have to use gofs-socketio this example works perfect, thank you!

https://github.com/ambelovsky/gosf-socketio/blob/master/examples/client.go