forked from websockets/ws
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/WebSocket.js: expose binaryType property
The W3C WebSocket interface includes a binaryType attributes for a socket and a corresponding BinaryType { 'blob', 'arraybuffer' } enum. This enables support for the 'arraybuffer' BinaryType, but avoiding changing the existing behaviour the default binaryType is set as 'nodebuffer'. The 'blob' type is left unsupported. This improves ws compatibility with some existing W3C WebSocket based client code. Fixes: websockets#441
- Loading branch information
Showing
2 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters