implemented feature of posting messages on particular event using socket.io