Closed tavancini-tc closed 1 year ago
I'm looking into this, hopefully I can roll this fix in to the next patch release that I plan to finalize this weekend.
Thanks for submitting this bug report (again with the great code examples to follow)!
Hey Nika, do you have any updates? Thanks!
The week got a bit more busier than expected, and I had to do a few refactors of the code that I was working on. But I will absolutely try and get this code out and committed by the end of this weekend. Sorry for the delay, and thanks for your patience.
Np, thanks!
Hi @tavancini-tc,
I added the socketio.WithPath
option that you can use with your code. That should work if you update the server config to be something like:
server := sio.NewServerV2(
sio.WithPath("/testing/"), // NOTE: the 'sio.' here.
eio.WithSessionShave(1*time.Millisecond),
eio.WithPingInterval(5*time.Second),
eio.WithPingTimeout(1*time.Minute),
eio.WithMaxPayload(1000000),
eio.WithTransportOption(eiot.WithGovernor(1500*time.Microsecond, 500*time.Microsecond)),
)
Great, thanks! I'll run some tests and see if everything is ok.
When defining a specific path on the server and the client, the connection is not established by the client.
Node client:
Go server: