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

On(*, func) seems to indicate that you can have the socket passed as an arg, but this is not explained anywhere?

Open nfirvine opened this issue 9 years ago • 1 comments

https://github.com/googollee/go-socket.io/blob/b14926c0af346c1ec2ac75cfb74acad2e48b3a69/caller.go#L31-L34

makes it look like you could do something like:

so.On("message", func(Socket socketio.Socket) {
    // so == Socket
})

But this is undocumented.

nfirvine avatar Feb 19 '16 22:02 nfirvine

@nfirvine Hi. Is it actually problem? It is old code version.

sshaplygin avatar Oct 22 '19 15:10 sshaplygin