Skip to content

Conversation

@darrachequesne
Copy link
Member

So that the call to the has-binary method can be skipped. Usage:

// with binary data
socket.binary(true).emit("binary", obj);

// without binary data
socket.binary(false).emit("string", obj);

// call to hasBin
socket.emit("guess", obj);

From #2838.

So that the call to the `has-binary` method can be skipped. Usage:

```
// with binary data
socket.binary(true).emit("binary", obj);

// without binary data
socket.binary(false).emit("string", obj);

// call to hasBin
socket.emit("guess", obj);
```
@darrachequesne darrachequesne merged commit f48a06c into socketio:master Feb 28, 2018
@darrachequesne darrachequesne deleted the feat/binary-flag branch February 28, 2018 22:00
@darrachequesne darrachequesne added this to the 2.1.0 milestone Feb 28, 2018
dzad pushed a commit to dzad/socket.io that referenced this pull request May 29, 2023
So that the call to the `has-binary` method can be skipped. Usage:

```
// with binary data
socket.binary(true).emit("binary", obj);

// without binary data
socket.binary(false).emit("string", obj);

// call to hasBin
socket.emit("guess", obj);
```
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.

1 participant