fix NullPointerException in WebSocketClient
Merge pull request #159 from MorganWu/master

fix NullPointerException in WebSocketClient