-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add _socket to stream #1689
Comments
I prefer not. The user should not mess with the internal |
@lpinca This is how I'm doing it now, I moved to |
Why you need to access the internal socket? |
To be able to get informations about connection details (remoteIp, ipFamily etc..) from the stream |
You can grab that info from the wss.on('connection', function(ws, request) {
// `request` has all the data including the socket itself.
}); https://github.com/websockets/ws#how-to-get-the-ip-address-of-the-client |
@lpinca Yes that is how I'm doing it right now, It's not a problem I was just asking if maybe it could be possibile and useful to others add that |
No thanks, |
When using
createWebSocketStream
the duplex returned doesn't have any_socket
property. Is it possible to add it?moscajs/aedes#413
The text was updated successfully, but these errors were encountered: