Fix function name for server side, make more listener for different purpose, send disconnected alert when disconnect