Skip to content

fix online list request#204

Merged
banshiAnton merged 17 commits into
developmentfrom
fix-online-list
May 12, 2026
Merged

fix online list request#204
banshiAnton merged 17 commits into
developmentfrom
fix-online-list

Conversation

@banshiAnton

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread app/utils/watchdog-ping-socket.js Outdated
export const watchdogPingSocket = async (logger, sessionService, onWsCloseCb, onTcpCloseCb) => {
const users = Object.keys(sessionService.activeSessions.DEVICES)

logger.debug("[run] %s", users.length)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logger.debug("[watchdogPingSocket][run] %s", users.length)

connection.socket?.send(pingPackage)
}
} catch (error) {
logger.error(error, "[error socket send] %s", userId)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logger.error(error, "[watchdogPingSocket][error socket send] %s", userId)

if (isTCP) {
await onTcpCloseCb(connection?.socket)
.then(() => logger.debug("[close tcp done] %s", userId))
.catch(error => logger.error(error, "[close tcp error]"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.catch(error => logger.error(error, "[watchdogPingSocket][close tcp error]"))

} else {
await onWsCloseCb(connection?.socket, 10)
.then(() => logger.debug("[close ws done] %s", userId))
.catch(error => logger.error(error, "[close ws error]"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.catch(error => logger.error(error, "[watchdogPingSocket][close ws error]"))

@banshiAnton
banshiAnton merged commit fb93855 into development May 12, 2026
banshiAnton added a commit that referenced this pull request May 12, 2026
* fix online list request (#204)

* fix online list request

* add basic cmd ws test commands

* update check cmd connections

* add close

* add socketCloseWatchdog

* add remove session

* on close logs debug

* add repl service

* update docker-file

* add ping socket

* update package

* fix tcp send failed

* update watchdogPingSocket

* add logs

* update addUserDeviceConnection

* update submodule

* changelog: v0.36.2
banshiAnton added a commit that referenced this pull request Jul 7, 2026
* fix online list request (#204)

* fix online list request

* add basic cmd ws test commands

* update check cmd connections

* add close

* add socketCloseWatchdog

* add remove session

* on close logs debug

* add repl service

* update docker-file

* add ping socket

* update package

* fix tcp send failed

* update watchdogPingSocket

* add logs

* update addUserDeviceConnection

* update submodule

* changelog: v0.36.2

* Imp node clustering (#205)

* update logs

* sync activity cluster

* update activity service

* imp base clean node data

* it can send offline status for died node users

* refactoring

* fix spec

* update config

* refactor PacketManager

* it can clear destoyed node cache data

* update clean node conditions

* add reconnecting

* add Node Clustering readme

* it can close ws with code

* reconnecty only ifWas opened

* fix typo

* start testing

* add activty listening

* update same-node / cross-node specs

* add fixtures

* update specs

* it can connect with token

* test reconnecting

* update specs

* update specs: add dummy data

* update spec titles

* update install docker

* add hostname to stats

* update cors header

* add logs

* add log

* add logs

* close cluster socket on delete

* fix config

* remove session with old node endpoint

* add client cluster test

* update testing clients cluster

* add check last activity

* add repl services

* fix typo in env

* fix env val

* update

* add netcat install to dockerfile

* update addUserDeviceConnection

* add keep alive

* fix typo

* update submodule

* use res instead of  res.fakeWsSessionKey

* watchdogPingSocket ignore HTTP_DEVICE_ID

* update

* try fix listUserDevice

* try fix listUserDevice

* update listUserDevice

* add to session service filterActualDevices

* update addUserDeviceConnection and storeUserNodeData

* update package

* add logs

* add log

* it can block create_user/auth if account was blocked

* update env

* update @sama-communications/sdk

* update requestTrackId in error response

* add cluster env CLUSTER_ADVERTISE_IP

* update workflows

* add workflow_dispatch

* update workflows tests

* update env docker

* formating

* update submodule

* update submodule to main branch
@banshiAnton
banshiAnton deleted the fix-online-list branch July 7, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants