send msg through web socket on login