erlangpl-ui
erlangpl-ui copied to clipboard
Promise based WebSockets
Right now WebSockets are very primitive. Converting it to promise based approach allow us sending promise based messages to server.
socket.send('topic', { message })
.then(response => {})
.catch(error => {})
We have to put some work into restoring lost connection as well because maybe we're using erlangpl
on separate machine within the same network and we lost connection, etc.
Socket connection should be exported to epl-components