Real-Time Elm Picshare Using Websockets — Tentamen Software Testing Blog

Image for post
Image for post


In the previous post, we mapped received photos from REST API into our simple Picshare application. Today we will load three Photos into the Picshare application. This post is part of the functional language series, and it is based on a remarkable book, Programming Elm Build Safe and Maintainable Front-End Applications by Jeremy Fairbank.


Websockets are durable connections between Browser and backend server. Through WebSocket, the browser application receives real-time data. The browser application only needs to subscribe to a WebSocket with interesting data.

Load Multiple Photos In Picshare application

Open your Picshare. elm file and add comments from the following gist:

Make application in picshare/src

elm make Picshare.elm --output picshare.js and open index.html

Originally published at on January 23, 2021.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store