pass req object #1230
andrewvlgafc
started this conversation in
Ideas & Feature requests
pass req object
#1230
Replies: 1 comment
-
Yes! Please add this. This should be easy to add. It's quite inconvenient if we need to evaluate the request (especially headers or url params for auth) beyond the default peer server interactions. We don't have a way to authenticate the request (server side, not just token field) since the "connection" event doesn't have access to the request object. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello.
Can you pass express req object to use it in peerServer.on('connection'
Need to assess to req.headers to get x-forwarded-for
Beta Was this translation helpful? Give feedback.
All reactions