This commit is contained in:
kozabrada123 2024-06-23 16:07:40 +02:00
parent 3d1c275f48
commit 627ca5f1bf
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ impl From<WsMessage> for GatewayMessage {
impl From<RawGatewayMessage> for WsMessage { impl From<RawGatewayMessage> for WsMessage {
fn from(message: RawGatewayMessage) -> Self { fn from(message: RawGatewayMessage) -> Self {
match message { match message {
RawGatewayMessage::Text(text) => tungstenite::Message::Text(text), RawGatewayMessage::Text(text) => WsMessage::Text(text),
RawGatewayMessage::Bytes(bytes) => tungstenite::Message::Binary(bytes), RawGatewayMessage::Bytes(bytes) => WsMessage::Binary(bytes),
} }
} }
} }