add protocols option to WebSocket creation

Closes issue #1