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

Fix: example code documentation V1.4.4

Open muhajirmuhajir opened this issue 3 years ago • 3 comments

update example code for go-socket.io version 1.4.4. this pull request will resolve issue #407

muhajirmuhajir avatar Apr 17 '21 21:04 muhajirmuhajir

@muhajirmuhajir Hey! please, told to me what are you wanna do by this fix? Emit is does not work?

sshaplygin avatar Apr 17 '21 22:04 sshaplygin

@mrfoe7, yes, I just tried the Emit function and it only sends the data to the connected client who sends it. not broadcast to all clients who connected to the socket. so I replace the documentation with BroadcastToRoom and its work

muhajirmuhajir avatar Apr 17 '21 22:04 muhajirmuhajir

@muhajirmuhajir Hey, I checked your decision on last week. Is your examples work? On my machine they does not work.

sshaplygin avatar May 09 '21 21:05 sshaplygin