UNPKG

wasmrs-js

Version:

A JavaScript implementation of the RSocket protocol over WebAssembly.

14 lines 503 B
import { Deserializer, } from 'rsocket-core'; import { WasmRsDuplexConnection } from './wasmrs-connection.js'; export class WasmRsTransport { options; instance; constructor(options) { this.options = options; this.instance = options.instance; } connect(multiplexerDemultiplexerFactory) { return Promise.resolve(new WasmRsDuplexConnection(this.instance, new Deserializer(), multiplexerDemultiplexerFactory)); } } //# sourceMappingURL=wasmrs-transport.js.map