Skip to content

Instantly share code, notes, and snippets.

@karlosmid
Created January 28, 2021 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlosmid/59f505589c39c45f53c48cfdcf86c00a to your computer and use it in GitHub Desktop.
Save karlosmid/59f505589c39c45f53c48cfdcf86c00a to your computer and use it in GitHub Desktop.
Connect elm application with Websocket server
port module WebSocket exposing (listen, receive)
port listen : String -> Cmd msg
port receive : (String -> msg) -> Sub msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment