@@ -1,14 +1,16 @@
1−-- A library for low latency HTTP communication. See the HTTP library for
2−-- standard requests like GET, POST, etc.
31module WebSocket where
2+{-| A library for low latency HTTP communication. See the HTTP library for
3+standard requests like GET, POST, etc.
4+-}
45
56import Signal (Signal)
67import Basics (String)
78import Native.WebSocket
89
9−-- Create a web-socket. The first argument is the URL of the desired
10−-- web-socket server. The input signal holds the outgoing messages,
11−-- and the resulting signal contains the incoming ones.
10+{-| Create a web-socket. The first argument is the URL of the desired
11+web-socket server. The input signal holds the outgoing messages,
12+and the resulting signal contains the incoming ones.
13+-}
1214connect : String -> Signal String -> Signal String
1315connect = Native.WebSocket.connect
1416