jnguillerme / mqtt.dart

dart mqtt client
BSD 2-Clause "Simplified" License
51 stars 16 forks source link

dart:io not Available on Dartium #2

Closed rosaldanha closed 6 years ago

rosaldanha commented 9 years ago

Hello, I´m trying to use the html websocket, as showed in the sample, but when I run, I got the following error:

The Request buit-in library is not available on Dartium. 'package:mqtt/mqtt_shared.dart': error: line 6 pos 1: library handler failed
 import 'dart:io':

^: package:mqtt/mqtt_shared.dart

To my understanding the dart:io cant be used in web apps, is this correct ?

Thanks in advance !

jnguillerme commented 9 years ago

Hi, I haven’t worked on that library for quite some time, so it got developed with an old version on DART. I guess this is the reason for your error. I will work on supporting the latest DART version.

I’ll keep you posted.

thank you,

Jean-Noel

On 17 Jun 2015, at 16:02, Saldanha notifications@github.com wrote:

Hello, I´m trying to use the html websocket, as showed in the sample, but when I run, I got the following error:

The Request buit-in library is not available on Dartium. 'package:mqtt/mqtt_shared.dart': error: line 6 pos 1: library handler failed import 'dart:io': ^: package:mqtt/mqtt_shared.dart

To my understanding the dart:io cant be used in web apps, is this correct ?

Thanks in advance !

— Reply to this email directly or view it on GitHub https://github.com/jnguillerme/mqtt.dart/issues/2.