Fixed the return type of Socket.events