在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jaspervdj/websockets开源软件地址(OpenSource Url):https://github.com/jaspervdj/websockets开源编程语言(OpenSource Language):Haskell 88.6%开源软件介绍(OpenSource Introduction):websocketsIntroductionProvides a sensible, clean and simple way to write WebSocket-capable servers in Haskell. The following program echoes messages back after appending {-# LANGUAGE OverloadedStrings #-}
import Control.Monad (forever)
import qualified Data.Text as T
import qualified Network.WebSockets as WS
meow :: WS.Connection -> IO ()
meow conn = forever $ do
msg <- WS.receiveData conn
WS.sendTextData conn $ msg `T.append` ", meow" Installation is provided using cabal:
AuthorsAn initial WebSockets library was written in 2010 by Siniša Biđin. In 2011, it was rewritten from scratch, and extended to its current state by Jasper Van der Jeugt, who is also the current maintainer. Contributors:
DevelopmentPull requests are always welcome! This library is production-quality. Therefore we have very high standards in terms of code style, API quality and testing. We have three kinds of tests:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论