我目前正在使用SpringMVC编写一个论坛Web应用程序。我只是Spring的初学者,现在才使用它大约1周。Ineedtoimplementpushnotifications.Hereisthescenario:UserAlogsinandcreatesapost.UserBcommentsonUserA'spostwhileUserAisstillloggedin.UserAreceivesanotificationthatsomeuserhascommentedonhispost,withouthisbrowserrefreshingthepage.在向用户A发送用户B已异步评论
我目前正在使用SpringMVC编写一个论坛Web应用程序。我只是Spring的初学者,现在才使用它大约1周。Ineedtoimplementpushnotifications.Hereisthescenario:UserAlogsinandcreatesapost.UserBcommentsonUserA'spostwhileUserAisstillloggedin.UserAreceivesanotificationthatsomeuserhascommentedonhispost,withouthisbrowserrefreshingthepage.在向用户A发送用户B已异步评论
我需要使用PHP作为后端并使用JQuery作为前端与多个channel进行tet-a-tetcomet聊天。我需要类似事件驱动服务器的东西来做这件事......但没有找到任何简单和适用于我的任务。请告诉我这个问题的最佳解决方案 最佳答案 您可以查找ReverseAjax学期。可能是APEproject会帮助你。 关于php-进行cometd聊天的最简单方法,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.co
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visitthehelpcenter指导。关闭10年前。我已经对使用javascript的服务器推送进行了一些研究,发现普遍的共识是我正在寻找的是“cometd”设计模式。是否有基于jQuery构建的此模式的任何良好实现?如果没有,这种模式有什么好的实现吗?不管这些问题的答案如何,从实现的Angular来看,是否有任何关于此模式的文档?
我正在考虑使用PHP后端实现实时聊天,但我在一个讨论cometd的网站上看到了这条评论:MyunderstandingisthatPHPisaterriblelanguageforComet,becauseCometrequiresyoutokeepapersistentconnectionopentoeachbrowserclient.Usingmod_phpthismeanstyingupanApachechildfull-timeforeachclientwhichdoesn’tscaleatall.ThepeopleIknowdoingCometstuffaremostlyus