A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/SocketCluster/socketcluster/releases below:

Releases · SocketCluster/socketcluster · GitHub

Releases: SocketCluster/socketcluster

Releases · SocketCluster/socketcluster

v17.3.1 v16.0.1 v14.3.0 v14.2.0 v14.1.1 Breaking change v13.1.3 v12.0.0 v11.3.1 Breaking change v11.1.0 v10.0.0

Example:

  var scServer = worker.scServer;

  scServer.addMiddleware(scServer.MIDDLEWARE_HANDSHAKE_SC, (req, next) => {
    setTimeout(() => {
      var err = new Error('Failed MIDDLEWARE_HANDSHAKE_SC');
      err.name = 'SCHandshakeError';
      // Block connection with custom 4501 status code.
      // The client will receive this code as the first argument
      // to the 'disconnect' event handler.
      next(err, 4501);
    }, 200);
  });
Breaking change

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4