fixed require ws instead of wspp
convert message to Buffer/ArrayBuffer
convert message to Buffer/ArrayBuffer
convert message to Buffer/ArrayBuffer