[GH-ISSUE #4536] feat: WebSocket update for panel logins #3105

Closed
opened 2026-10-31 20:30:07 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Vercixx on GitHub (May 24, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4536

Currently, the only way to get login events outside of Telegram bot is using journald log or listening to the log file directly, which makes it incredibly hard for third-party applications to track panel logins.

Describe the solution you'd like

Add new WebSocket event login that is fired on panel logins (succeeded and failed).
Example succeeded response:

{
    "type": "login",
    "success": true,
    "username": "admin",
    "ip": "123.456.789.012"
}

Example failed response:

{
    "type": "login",
    "success": false,
    "reason": "Invalid credentials",
    "username": "admin",
    "ip": "123.456.789.012"
}

Describe alternatives you've considered

Running a script that exposes WebSocket endpoint on separate port with stream of writes to log file.

Checklist

  • This feature report is written entirely in English.
Originally created by @Vercixx on GitHub (May 24, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4536 ### Is your feature request related to a problem? Currently, the only way to get login events outside of Telegram bot is using `journald` log or listening to the log file directly, which makes it incredibly hard for third-party applications to track panel logins. ### Describe the solution you'd like Add new WebSocket event `login` that is fired on panel logins (succeeded and failed). Example succeeded response: ```json { "type": "login", "success": true, "username": "admin", "ip": "123.456.789.012" } ``` Example failed response: ```json { "type": "login", "success": false, "reason": "Invalid credentials", "username": "admin", "ip": "123.456.789.012" } ``` ### Describe alternatives you've considered Running a script that exposes WebSocket endpoint on separate port with stream of writes to log file. ### Checklist - [x] This feature report is written entirely in English.
bsakaguchi 2026-10-31 20:30:07 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3105
No description provided.