Add optional protocols parameter to WebSocket constructor.

Signed-off-by: Valentin Kunz <vale.kunz@googlemail.com>
Set protocols default value to an empty Array.
Merge pull request #2 from vkunz/master

Optional protocols parameter in WebSocket constructor.