Skip to content

Any way to double-check that utf-validate and bufferutil are being used? #4134

Answered by darrachequesne
trekze asked this question in Q&A
Discussion options

You must be logged in to vote

I think you can check by going into the node_modules/bufferutil directory, and then run:

$ node
> require('node-gyp-build')(".")
// should print "{ mask: [Function], unmask: [Function] }"

Reference: https://github.com/websockets/bufferutil/blob/330205e62cf079371438c2ddc2082931a703e6a1/index.js#L4

If it throws, that means it's the JS implementation that is used instead of the native one.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by darrachequesne
Comment options

You must be logged in to vote
1 reply
@darrachequesne
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants