shovon / node-rudp

Reliable UDP for Node.js
33 stars 14 forks source link

Buffer.isBuffer instead of instanceof #6

Closed mvayngrib closed 9 years ago

mvayngrib commented 9 years ago

for compatibility with non-nodejs environments (where Buffer is typically Uint8Array augmented with Buffer methods) https://nodejs.org/api/buffer.html#buffer_class_method_buffer_isbuffer_obj