Add stop thread
Merge branch 'master' of github.com:briangu/websocket