Yesod的Websockets? [英] Websockets in Yesod?
本文介绍了Yesod的Websockets?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以在Yesod网页框架中使用websocket吗?
<是的,正如Thomas M. DuBuisson在评论中指出的那样:在WAI中实现了一个WebSocket处理程序,它是Yesod用来与后端进行通信的接口。我无法评论它在当前表单中的效果如何,但您可以从下载并试用它Hackage 。
I would like to create a website using Yesod and websockets (html5).
Can I use websockets with Yesod webframework?
解决方案
Yes, as Thomas M. DuBuisson pointed out in the comments: a WebSocket handler is implemented in WAI which is the interface Yesod is using to communicate with it's backends. I can't comment on how well it works in it's current form, but you can download and try it from Hackage.
这篇关于Yesod的Websockets?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文