config web socket

This commit is contained in:
appflowy
2022-01-24 16:27:40 +08:00
parent 10d99bdd8b
commit 24c1817c8d
13 changed files with 244 additions and 186 deletions

View File

@ -35,7 +35,7 @@ impl std::default::Default for FlowySDKTest {
impl FlowySDKTest {
pub fn new(server_config: ClientServerConfiguration) -> Self {
let config = FlowySDKConfig::new(&root_dir(), server_config, &uuid_string()).log_filter("trace");
let sdk = FlowySDK::new(config);
let sdk = std::thread::spawn(|| FlowySDK::new(config)).join().unwrap();
std::mem::forget(sdk.dispatcher());
Self { inner: sdk }
}