10 lines
410 B
Elm
10 lines
410 B
Elm
|
-- A library for low latency HTTP communication. See the HTTP library for standard
|
||
|
-- requests like GET, POST, etc.
|
||
|
|
||
|
module WebSocket where
|
||
|
|
||
|
-- 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.
|
||
|
open : String -> Signal String -> Signal String
|
||
|
open = Native.WebSocket.open
|