added SocketEvents.js