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 {
fn from(message: RawGatewayMessage) -> Self {
match message {
RawGatewayMessage::Text(text) => tungstenite::Message::Text(text),
RawGatewayMessage::Bytes(bytes) => tungstenite::Message::Binary(bytes),
RawGatewayMessage::Text(text) => WsMessage::Text(text),
RawGatewayMessage::Bytes(bytes) => WsMessage::Binary(bytes),
}
}
}