0
votes

I am trying to write an application that uses the RPC api.

My application works okay when run as javascript in chrome, but when I try and run it in Dartium, I get the following message

The requested built-in library is not available on Dartium.'package:rpc/src/context.dart': error: line 7 pos 1: library handler failed import 'dart:io'; ^: package:rpc/src/context.dart

I don't think that my client code is importing dart:io. Is there any way of checking this?

1

1 Answers

0
votes

You can't use the RPC package code directly in your client application. RPC is server-side only. You can then generate the client code from your RPC server application. The README.md of the RPC package has more details how to do this.