// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
usecrate::voice::gateway::VoiceGatewayMessage;usews_stream_wasm::WsMessage;implFrom<VoiceGatewayMessage>forWsMessage{fnfrom(message: VoiceGatewayMessage)->Self{Self::Text(message.0)}}implFrom<WsMessage>forVoiceGatewayMessage{fnfrom(value: WsMessage)->Self{match value {WsMessage::Text(text)=>Self(text),WsMessage::Binary(bin)=>{letmut text =String::new();let_= bin.iter().map(|v|text.push_str(&v.to_string()));Self(text)}}}}