22//!
33//! This module is internal, and may incompatibly change without warning.
44
5+ #[ cfg( not( feature = "web" ) ) ]
6+ use bytes:: Bytes ;
7+ #[ cfg( not( feature = "web" ) ) ]
8+ use futures:: TryStreamExt ;
9+ use futures:: { SinkExt , StreamExt as _} ;
10+ use futures_channel:: mpsc;
11+ use http:: uri:: { InvalidUri , Scheme , Uri } ;
12+ use spacetimedb_client_api_messages:: websocket as ws;
13+ use spacetimedb_lib:: { bsatn, ConnectionId } ;
514#[ cfg( not( feature = "web" ) ) ]
615use std:: fs:: File ;
716#[ cfg( not( feature = "web" ) ) ]
@@ -13,16 +22,6 @@ use std::sync::Arc;
1322use std:: sync:: Mutex ;
1423#[ cfg( not( feature = "web" ) ) ]
1524use std:: time:: Duration ;
16-
17- #[ cfg( not( feature = "web" ) ) ]
18- use bytes:: Bytes ;
19- #[ cfg( not( feature = "web" ) ) ]
20- use futures:: TryStreamExt ;
21- use futures:: { SinkExt , StreamExt as _} ;
22- use futures_channel:: mpsc;
23- use http:: uri:: { InvalidUri , Scheme , Uri } ;
24- use spacetimedb_client_api_messages:: websocket as ws;
25- use spacetimedb_lib:: { bsatn, ConnectionId } ;
2625use thiserror:: Error ;
2726#[ cfg( not( feature = "web" ) ) ]
2827use tokio:: { net:: TcpStream , runtime, task:: JoinHandle , time:: Instant } ;
0 commit comments