You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lib/mqtt_browser_client.dart: Warning: Interpreting this as package URI, 'package:mojifinal/mqtt_browser_client.dart'.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/mqtt5_client-3.1.3/lib/mqtt5_browser_client.dart:11:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/mqtt5_client-3.1.3/lib/src/connectionhandling/browser/mqtt_browser_ws_connection.dart:51:16: Error: The method 'WebSocket' isn't defined for the class 'MqttBrowserWsConnection'.
'MqttBrowserWsConnection' is from 'package:mqtt5_client/mqtt5_browser_client.dart' ('/C:/flutter/.pub-cache/hosted/pub.dartlang.org/mqtt5_client-3.1.3/lib/mqtt5_browser_client.dart').
Try correcting the name to the name of an existing method, or defining a method named 'WebSocket'.
client = WebSocket(uriString, protocols);
^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/mqtt5_client-3.1.3/lib/src/connectionhandling/browser/mqtt_browser_ws_connection.dart:114:16: Error: The method 'WebSocket' isn't defined for the class 'MqttBrowserWsConnection'.
'MqttBrowserWsConnection' is from 'package:mqtt5_client/mqtt5_browser_client.dart' ('/C:/flutter/.pub-cache/hosted/pub.dartlang.org/mqtt5_client-3.1.3/lib/mqtt5_browser_client.dart').
Try correcting the name to the name of an existing method, or defining a method named 'WebSocket'.
client = WebSocket(uriString, protocols);
^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/mqtt5_client-3.1.3/lib/src/connectionhandling/browser/mqtt_browser_connection.dart:44:32: Error: 'MessageEvent' isn't a type.
client.onMessage.listen((MessageEvent e) {
^^^^^^^^^^^^
Process finished with exit code 254
The text was updated successfully, but these errors were encountered:
Warning: Interpreting this as package URI, 'package:mojifinal/mqtt_browser_client.dart'.
but it looks as though your are trying to use the browser client in a flutter environment, which is a server side dev env so you need the server client. The browser client is for use in flutter web development.
I got this on Web version.
lib/mqtt_browser_client.dart: Warning: Interpreting this as package URI, 'package:mojifinal/mqtt_browser_client.dart'.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/mqtt5_client-3.1.3/lib/mqtt5_browser_client.dart:11:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/mqtt5_client-3.1.3/lib/src/connectionhandling/browser/mqtt_browser_ws_connection.dart:51:16: Error: The method 'WebSocket' isn't defined for the class 'MqttBrowserWsConnection'.
Try correcting the name to the name of an existing method, or defining a method named 'WebSocket'.
client = WebSocket(uriString, protocols);
^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/mqtt5_client-3.1.3/lib/src/connectionhandling/browser/mqtt_browser_ws_connection.dart:114:16: Error: The method 'WebSocket' isn't defined for the class 'MqttBrowserWsConnection'.
Try correcting the name to the name of an existing method, or defining a method named 'WebSocket'.
client = WebSocket(uriString, protocols);
^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/mqtt5_client-3.1.3/lib/src/connectionhandling/browser/mqtt_browser_connection.dart:44:32: Error: 'MessageEvent' isn't a type.
client.onMessage.listen((MessageEvent e) {
^^^^^^^^^^^^
Process finished with exit code 254
The text was updated successfully, but these errors were encountered: