diff --git a/src/notifications/events.rs b/src/notifications/events.rs index 8a304878..5ec1fc85 100644 --- a/src/notifications/events.rs +++ b/src/notifications/events.rs @@ -181,9 +181,6 @@ pub enum ClientboundNotification { id: String, update: Value, }, - Pong { - data: Vec - } } impl ClientboundNotification { diff --git a/src/notifications/websocket.rs b/src/notifications/websocket.rs index 76123732..e6ae3506 100644 --- a/src/notifications/websocket.rs +++ b/src/notifications/websocket.rs @@ -81,7 +81,7 @@ async fn accept(stream: TcpStream) { .peer_addr() .expect("Connected streams should have a peer address."); let (sender, receiver) = oneshot::channel::(); - + let ws_stream = async_tungstenite::accept_hdr_async_with_config(stream, HeaderCallback { sender }, None) .await .expect("Error during websocket handshake.");