esc_pos_printer icon indicating copy to clipboard operation
esc_pos_printer copied to clipboard

Support print on web

Open hayhv opened this issue 4 years ago • 2 comments

When i run 'flutter build apk' it run success but if i run on web 'flutter run -d chrome' it do not connect to printer

hayhv avatar May 11 '20 15:05 hayhv

This issue is related to Socket from dart.io, not compatible on Flutter Web.

Related to https://stackoverflow.com/questions/60266060/how-can-i-use-sockets-with-flutter-web : You can use HtmlWebSocketChannel from the web_socket_channel package as documented here. I have used this package and can confirm it works well in flutter web.

@andrey-ushakov, from your view, the socket used by POS is compatible with web socket implementation ?

jocelyngirard avatar Nov 18 '20 14:11 jocelyngirard

If it connected, is it able to print on web??

baotran310702 avatar Dec 18 '23 02:12 baotran310702