MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / remove_web_socket

Method remove_web_socket

fendermint/eth/api/src/state.rs:126–129  ·  view source on GitHub ↗

Remove the sender of a web socket.

(&self, id: &WebSocketId)

Source from the content-addressed store, hash-verified

124
125 /// Remove the sender of a web socket.
126 pub async fn remove_web_socket(&self, id: &WebSocketId) {
127 let mut guard = self.web_sockets.write().await;
128 guard.remove(id);
129 }
130
131 /// Get the sender of a web socket.
132 pub async fn get_web_socket(&self, id: &WebSocketId) -> anyhow::Result<WebSocketSender> {

Callers 1

rpc_ws_handler_innerFunction · 0.80

Calls 2

writeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected