How to make connection with qz tray

440 views
Skip to first unread message

gundalal...@gmail.com

unread,
Sep 24, 2019, 12:45:35 AM9/24/19
to qz-print
qz tray is not connected. when i am trying print with qz tray it showing that " Error: The current connection attempt has not returned yet", how to make connection with qz tray. can you share me the code how make connection with qz.

Kyle LaBarge

unread,
Sep 25, 2019, 7:44:41 AM9/25/19
to gundalal...@gmail.com, qz-print
qz.websocket.connect(); is all that is needed to make a connection.

Can you please share with us your code snippet for connecting and printing? If you're connecting and printing in the same function, it's important to use proper promise chains in order to avoid race conditions.



Kyle LaBarge


On Tue, Sep 24, 2019 at 12:45 AM <gundalal...@gmail.com> wrote:
qz tray is not connected. when i am trying print with qz tray it showing that " Error: The current connection attempt has not returned yet", how to make connection with qz tray. can you share me the code how make connection with qz.

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/515af0ed-4224-47b8-afab-9fe96cd31ab3%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages