WebsocketArchethicDappClient constructor
WebsocketArchethicDappClient({
- required RequestOrigin origin,
Implementation
WebsocketArchethicDappClient({
required super.origin,
}) : super(
channelBuilder: () async {
final socket = WebSocketChannel.connect(
Uri.parse('ws://127.0.0.1:12345'),
);
await socket.ready;
return socket.cast<String>();
},
disposeChannel: (channel) {},
);