Fish Wang says to YSITD
一個是在註冊error handle之前就送資料,如果送資料出錯就會導致整個程式噴掉,一個是在handshake之前就發open event,導致要是你在open event裡寫資料,就會因為在handshake之前寫東西而導致斷線