shamblett / mqtt_client

A server and browser based MQTT client for dart
Other
548 stars 176 forks source link

Flutter Web Error :(Unsupported operation: default SecurityContext getter) #197

Closed kumarmohan7 closed 3 years ago

kumarmohan7 commented 4 years ago

Hi,

I got error in Flutter Web in mqtt_client, How to solve this issue.

Please give fix / solution quickly.

image

Thank You Mohankumar

shamblett commented 4 years ago

Your trying to use mqtt_server_client in a Flutter web app, this won't work, you need to use mqtt_browser_client in browser based apps.

shamblett commented 4 years ago

As per the comment above, you are trying to use the server client in a web app, you have to use mqtt_browser_client, not mqtt_server_client.

amazingye commented 3 years ago

As per the comment above, you are trying to use the server client in a web app, you have to use mqtt_browser_client, not mqtt_server_client.

this helped, thanks

SiliconEmpire commented 2 years ago

i was having same error would it work on mobile