on master help sign in
Update to new doc format
5e9c993Evan Czaplicki
libraries/WebSocket.elm+7−5
@@ -1,14 +1,16 @@
1−-- A library for low latency HTTP communication. See the HTTP library for
2−-- standard requests like GET, POST, etc.
3module WebSocket where
1module WebSocket where
2+{-| A library for low latency HTTP communication. See the HTTP library for
3+standard requests like GET, POST, etc.
4+-}
4
5
5import Signal (Signal)
6import Signal (Signal)
6import Basics (String)
7import Basics (String)
7import Native.WebSocket
8import Native.WebSocket
8
9
9−-- Create a web-socket. The first argument is the URL of the desired
10+{-| 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+web-socket server. The input signal holds the outgoing messages,
11−-- and the resulting signal contains the incoming ones.
12+and the resulting signal contains the incoming ones.
13+-}
12connect : String -> Signal String -> Signal String
14connect : String -> Signal String -> Signal String
13connect = Native.WebSocket.connect
15connect = Native.WebSocket.connect
14
16