on bbbd6ee help sign in
elk/libraries/WebSocket.elm
11 lines 413 B history raw
1-- A library for low latency HTTP communication. See the HTTP library for
2-- standard requests like GET, POST, etc.
4module WebSocket where
6import Native.WebSocket as WS
8-- Create a web-socket. The first argument is the URL of the desired
9-- web-socket server. The input signal holds the outgoing messages,
10-- and the resulting signal contains the incoming ones.
11open : String -> Signal String -> Signal String