Function graphql_ws_client::wasm_websocket_combined_split
source · pub async fn wasm_websocket_combined_split(
ws_meta: WsMeta,
ws_stream: WsStream
) -> (impl Sink<WasmWebsocketMessage, Error = WsErr>, impl Stream<Item = Result<WasmWebsocketMessage, WsErr>>)
👎Deprecated since 0.8.0-rc.1: use graphql_ws_client::ws_stream_wasm::Connection and the new Client instead
Available on crate feature
ws_stream_wasm
only.Expand description
Creates a new pair of sink and stream which operate on WasmWebsocketMessage
instead of WsMessage
and WsEvent
separately.