fix Bug that don't output to chatlog  when onopen and onclose(#6/bug:bc6e396b4e534d5fdcab4f3aa521d082fb3bed97)

- change this.ws to socket