Documentation for Javascript API

Is there a document, post or a link from Zebra officially to explain how we can communicate with the printers with WebSocket using JavaScript as a language?

I have checked quite a few links and documentations from the Zebra web site, but was unable to print anything through a ws connection.

I was able to receive the discovery message after the Main channel was opened:

{

"discovery_b64" : "OiwuBAIBAAFaQlIAAFgAAAA ..."

}

But after that, I was unable to connect with either a Raw Channel or a Configuration Channel, and thus unable to print anything from Javascript in the end.

It would be a great help if you can send the official documentation or even blogs (I couldn't find any) which specify on how I can print with JavaScript.

Thanks in advance.