mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Fixes #8213: Implement Blob variant of WebSocket.send()
This commit is contained in:
parent
6c051ce828
commit
1d280289f1
7 changed files with 86 additions and 52 deletions
|
@ -72,6 +72,11 @@ impl Blob {
|
|||
pub fn read_out_buffer(&self, send: Sender<Vec<u8>>) {
|
||||
send.send(self.bytes.clone().unwrap_or(vec![])).unwrap();
|
||||
}
|
||||
|
||||
// simpler to use version of read_out_buffer
|
||||
pub fn clone_bytes(&self) -> Vec<u8> {
|
||||
self.bytes.clone().unwrap_or(vec![])
|
||||
}
|
||||
}
|
||||
|
||||
impl BlobMethods for Blob {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue