hi~
Socket.io can get user IP in the following ways. How can colyseus do similar things?
io.request.connection.remoteAddress
hi~
Socket.io can get user IP in the following ways. How can colyseus do similar things?
io.request.connection.remoteAddress
I know this is old, but maybe you still need an answer - it can be found here in the docs. Essentially the onAuth(client, options, request)
function takes a third parameter request
which you can then use to get the IP with request.connection.remoteAddress
.