How to use the uws.OPCODE_BINARY function in uws

To help you get started, we’ve selected a few uws examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github deepstreamIO / deepstream.io / dist / src / message / uws / socket-wrapper-factory.js View on Github external
flush() {
        if (this.bufferedWrites !== '') {
            uws.native.server.send(this.external, this.bufferedWrites, uws.OPCODE_BINARY);
            this.bufferedWrites = '';
        }
    }
    /**
github primus / primus / transformers / uws / server.js View on Github external
spark.on('outgoing::data', (data) => {
      const opcode = Buffer.isBuffer(data)
        ? uws.OPCODE_BINARY
        : uws.OPCODE_TEXT;

      native.server.send(socket, data, opcode, undefined, true);
    });
  });

uws

## Go to [https://github.com/uNetworking/uWebSockets.js](https://github.com/uNetworking/uWebSockets.js).

Apache-2.0
Latest version published 4 years ago

Package Health Score

63 / 100
Full package analysis