It should stop a nation state if you serve up the JS via HTTPS and use certificate pinning.
Chrome does not perform pin validation when the certificate chain chains up to a private trust anchor. A key result of this policy is that private trust anchors can be used to proxy (or MITM) connections, even to pinned sites. “Data loss prevention” appliances, firewalls, content filters, and malware can use this feature to defeat the protections of key pinning.
https://www.chromium.org/Home/chromium-security/security-faq...
"It won't stop a nation state modifying requests in transit and injecting their own js but it will probably stop a nosy sysadmin."
I may use openpgpjs down the line for private messages within rooms. I also want to experiment with WebRTC for private messages and maybe offer some opportunistic peer to peer connections but I haven't gotten the far yet.