add server side chat feature logic