How do I know when an epub downloaded successfully (or unsuccessfully)?

102 views
Skip to first unread message

brett....@eflglobal.com

unread,
Sep 26, 2016, 9:15:30 AM9/26/16
to epubjs
Hi everyone,

Great library! I've been using it for a project thats online and I'm running into an edge case... what happens when a large epub (8-10mb) is downloading on a poor internet connection and the connection drops? it seems as if it tries to open the partially downloaded content.

How should I handle internet connection drops? I'm fine with telling the user they're offline and to wait until the connection is restored but can this library tell me that the connection is dropped?

I see all these events. Can they help? book:ready book:stored book:online book:offline

Thanks!
Brett
Reply all
Reply to author
Forward
0 new messages