Explorar o código

Merge branch 'dev/4.1.x'

Yuki Takei %!s(int64=5) %!d(string=hai) anos
pai
achega
b4aa938ef7
Modificáronse 2 ficheiros con 10 adicións e 0 borrados
  1. 4 0
      CHANGES.md
  2. 6 0
      src/server/service/socket-io.js

+ 4 - 0
CHANGES.md

@@ -12,6 +12,10 @@
 * Improvement: Basic layout of page
 * Support: Support MongoDB 4.0, 4.2 and 4.4
 
+## v4.1.9
+
+* Feature: Environment variables to set max connection size to deliver push messages to all clients
+
 ## v4.1.8
 
 * Improvement: Rebuilding progress bar colors for Full Text Search Management

+ 6 - 0
src/server/service/socket-io.js

@@ -170,6 +170,12 @@ class SocketIoService {
    * @see https://socket.io/docs/server-api/#socket-client
    */
   async checkConnectionLimits(socket, next) {
+    // exclude admin
+    const namespaceName = socket.nsp.name;
+    if (namespaceName === '/admin') {
+      next();
+    }
+
     const clients = await this.getClients(this.getDefaultSocket());
     const clientsCount = clients.length;