mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
stream filtering by connection id
This commit is contained in:
@@ -152,7 +152,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
ping_meta: true,
|
||||
async ping({ conidArray }) {
|
||||
async ping({ conidArray, strmid }) {
|
||||
await Promise.all(
|
||||
_.uniq(conidArray).map(async conid => {
|
||||
const last = this.lastPinged[conid];
|
||||
@@ -169,6 +169,7 @@ module.exports = {
|
||||
}
|
||||
})
|
||||
);
|
||||
socket.setStreamIdFilter(strmid, { conid: conidArray });
|
||||
return { status: 'ok' };
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user