elm-lang/core/1.1.0

NOTE: this package moved to elm/core

NOTE: this package is not compatible with Elm 0.19.1

WebSocket

A library for low latency HTTP communication. See the HTTP library for standard requests like GET, POST, etc. The API of this library is likely to change to make it more flexible.

Open a Connection

connect : String -> Signal String -> Signal String

Create a web-socket. The first argument is the URL of the desired web-socket server. The input signal holds the outgoing messages, and the resulting signal contains the incoming ones.