Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the flags argument #1101

Merged
merged 1 commit into from
May 11, 2017
Merged

Remove the flags argument #1101

merged 1 commit into from
May 11, 2017

Conversation

lpinca
Copy link
Member

@lpinca lpinca commented May 10, 2017

The flags object specifies whether the received data is binary or not and whether it was masked or not. This object is actually redundant and therefore removed in this commit as the spec requires client-sent frames to be masked and server-sent frame to be unmasked.

The typeof operator can be used to check whether the received data is binary or not.

The `flags` object specifies whether the received data is binary or not
and whether it was masked or not. This object is actually redundant and
therefore removed in this commit as the spec requires client-sent
frames to be masked and server-sent frame to be unmasked.

The `typeof` operator can be used to check whether the received data is
binary or not.
@3rd-Eden
Copy link
Member

+1 for the sake of API consistency.

@lpinca lpinca merged commit 18f2933 into breaking-changes May 11, 2017
@lpinca lpinca deleted the remove/flags-argument branch May 11, 2017 12:43
lpinca added a commit that referenced this pull request May 16, 2017
The `flags` object specifies whether the received data is binary or not
and whether it was masked or not. This object is actually redundant and
therefore removed in this commit as the spec requires client-sent
frames to be masked and server-sent frame to be unmasked.

The `typeof` operator can be used to check whether the received data is
binary or not.
lpinca added a commit that referenced this pull request May 16, 2017
The `flags` object specifies whether the received data is binary or not
and whether it was masked or not. This object is actually redundant and
therefore removed in this commit as the spec requires client-sent
frames to be masked and server-sent frame to be unmasked.

The `typeof` operator can be used to check whether the received data is
binary or not.
lpinca added a commit that referenced this pull request May 17, 2017
The `flags` object specifies whether the received data is binary or not
and whether it was masked or not. This object is actually redundant and
therefore removed in this commit as the spec requires client-sent
frames to be masked and server-sent frame to be unmasked.

The `typeof` operator can be used to check whether the received data is
binary or not.
@rimmartin
Copy link

typeof message
produces 'object'; can't tell if it holds binary or not

@lpinca
Copy link
Member Author

lpinca commented Aug 19, 2017

@rimmartin if it's not a string and you use default settings it's a Buffer.

@rimmartin
Copy link

@lpinca ah thanks

facebook-github-bot pushed a commit to facebookarchive/nuclide that referenced this pull request Oct 14, 2017
Summary:
Address the breaking changes from: https://github.com/websockets/ws/releases/tag/3.0.0
Apply the changes suggested in websockets/ws#1099
Apply the changes suggested in websockets/ws#1101

Reviewed By: hansonw

Differential Revision: D6031593

fbshipit-source-id: 6ffe8b03dd6ddab1dc26074a5d9b3baf55689d17
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.

None yet

3 participants