I'm having this issue also. It seems to be related to this issue opened on the Github repo. https://github.com/katzer/cordova-plugin-printer/issues/28
If I try to add the plugin from the master branch it causes my websocket connection to break. Probably not directly related. I think it has something to do with the order things are loaded in my index.html
.