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