Add WSS support
Merge pull request #4 from asv/wss_support

Add WSS support
thanks to asv