Websockets in Yesod?

2020-08-15 10:28发布

问题:

I would like to create a website using Yesod and websockets (html5).

Can I use websockets with Yesod webframework?

回答1:

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.