MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / set_socket_state

Method set_socket_state

packages/server/src/webkit.rs:229–239  ·  view source on GitHub ↗
(&self, socket_path: Option<String>, warnings: Vec<String>)

Source from the content-addressed store, hash-verified

227 }
228
229 async fn set_socket_state(&self, socket_path: Option<String>, warnings: Vec<String>) {
230 let mut state = self.state.write().await;
231 state.socket_path = socket_path;
232 state.warnings = warnings;
233 if state.socket_path.is_none() {
234 state.applications.clear();
235 state.pages.clear();
236 }
237 drop(state);
238 self.notify.notify_waiters();
239 }
240
241 async fn publish_listing(
242 &self,

Callers 1

runMethod · 0.80

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected