message: construction: Drop old websockets connections
diff: @@ -159,7 +159,8 @@ impl Server {
  loop {
  let mut recv = recv.lock().await;
  // Listen for incomming messages
  - if let Some(Ok(msg)) = recv.next().await {
  + match recv.next().await {
  + Some(Ok(msg )) => {
  if msg.is_text() {
  let text = msg.to_str().unwrap();
  @@ -193,6 +194,11 @@ impl Server {
  }
  }
  }
  + },
  + _ => {
  + // Close thread for the particular connection
  + break;
  + }
  }
  }
  });
  