einaros/ws — pull request #73 by pigne (2012-05-17 16:41:46+00:00)
Title: Sender.hixie is given data of type 'Buffer' while expecting type 'string'

When using Safari (5.1.6), Sender.hixie raises a TypeError in send method, expecting parameter ``data`` to be a string while it is a ``Buffer``.

```
var length = Buffer.byteLength(data)
^
TypeError: Argument must be a string
```

I just added 2 tests to support both data types, ``string`` and ``Buffer``.