erlangpl-ui icon indicating copy to clipboard operation
erlangpl-ui copied to clipboard

Promise based WebSockets

Open baransu opened this issue 7 years ago • 1 comments

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.

baransu avatar Mar 14 '17 10:03 baransu