Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebSockets server using Haskell

I want to write WebSocket server on Haskell. In the websockets package there is a runServer function. Example app uses it. But doc says that it must be used only in test apps, not in real.

How can I write simple template for my server using best practices and faster modern solutions? GHC 7.8.3.

like image 975
Dmitry Avatar asked Mar 14 '26 04:03

Dmitry


1 Answers

If you have a ServerApp you can run it on Snap using this package. There's also a WAI-related package which mentions the ServerApp type.

like image 63
Alexander Vieth Avatar answered Mar 17 '26 01:03

Alexander Vieth