MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / remove_web_socket

Method remove_web_socket

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

Remove the sender of a web socket.

(&self, id: &WebSocketId)

Source from the content-addressed store, hash-verified

119
120 /// Remove the sender of a web socket.
121 pub async fn remove_web_socket(&self, id: &WebSocketId) {
122 let mut guard = self.web_sockets.write().await;
123 guard.remove(id);
124 }
125
126 /// Get the sender of a web socket.
127 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