erlanglab / erlangpl-ui

DEPRECATED: UI for Erlang Performance Lab
http://www.erlang.pl/
Apache License 2.0
18 stars 2 forks source link

Promise based WebSockets #22

Open baransu opened 7 years ago

baransu commented 7 years ago

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 commented 7 years ago

Socket connection should be exported to epl-components