Moved WebSocket initialization code into WebSocket.__init__, which fixed the bug where logging was no longer showing up under Linux.