Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Websocket client in Haskell?

I see lots of libraries and examples for writing websockets servers in Haskell, but what about clients? Are there any libraries around for that?

like image 753
singpolyma Avatar asked Mar 16 '13 16:03

singpolyma


2 Answers

The websockets package supports client-side applications

http://hackage.haskell.org/packages/archive/websockets/0.7.0.0/doc/html/Network-WebSockets.html#g:12

See the example:

https://github.com/jaspervdj/websockets/blob/master/example/client.hs

like image 145
Don Stewart Avatar answered Nov 15 '22 04:11

Don Stewart


The websockets package contains a websocket client as well. After initiating the connection with connect, you write the client code just like you would for the server, using the WebSockets monad.

like image 21
shang Avatar answered Nov 15 '22 05:11

shang