Skip to content
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

[Feature Request] Expose proxy username, password and customTag in connectionClosed event #574

Open
geminigeek opened this issue Jan 28, 2025 · 1 comment
Labels
backend Issues related to the platform backend. t-platform Issues with this label are in the ownership of the platform team.

Comments

@geminigeek
Copy link

geminigeek commented Jan 28, 2025

hi,

i am requesting username, password and customTag to be exposed in "connectionClosed" event

use case: with this we can log traffic stats by username in an external db

some thing like this

// Emitted when HTTP connection is closed
server.on('connectionClosed', ({ connectionId, stats, username, password, customTag }) => {
  console.log(`Connection ${connectionId} closed`);
  console.dir(stats);
// save stats to a file or db with user name here
});
@geminigeek geminigeek changed the title [Feature Request] Expose proxy username and password in connectionClosed event [Feature Request] Expose proxy username, password and customTag in connectionClosed event Jan 28, 2025
@fnesveda fnesveda added the t-platform Issues with this label are in the ownership of the platform team. label Feb 5, 2025
@jirimoravcik
Copy link
Member

Hello,

attributes username, password, and customTag can change between requests. Event connectionClosed is emitted when the whole connection is closed, thus there's not a possibility to know which values should be emitted.

If you're interested in the params, could you try using the event tunnelConnectResponded for your case? It includes the customTag, you can set it to whatever you like and include username and password in it if you wish. Thank you

@jirimoravcik jirimoravcik removed their assignment Feb 19, 2025
@fnesveda fnesveda added the backend Issues related to the platform backend. label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Issues related to the platform backend. t-platform Issues with this label are in the ownership of the platform team.
Projects
None yet
Development

No branches or pull requests

3 participants