MCPcopy Create free account
hub / github.com/PerroEngine/Perro / connect_websocket

Method connect_websocket

perro_source/api_modules/perro_networking/src/world.rs:63–69  ·  view source on GitHub ↗
(&mut self, url: impl AsRef<str>)

Source from the content-addressed store, hash-verified

61 }
62
63 pub fn connect_websocket(&mut self, url: impl AsRef<str>) -> NetResult<WebSocketConnectionId> {
64 let connection = WebSocketConnection::connect(url)?;
65 Ok(WebSocketConnectionId(insert_slot(
66 &mut self.websocket_connections,
67 connection,
68 )))
69 }
70
71 pub fn connect_websocket_with_options(
72 &mut self,

Callers

nothing calls this directly

Calls 2

insert_slotFunction · 0.85

Tested by

no test coverage detected