Firefox works with secure websockets (wss://). For this the certificate of the site needs to be trusted. Firefox does not allow the import of self-signed certificates as Certificate Authorities.
This issue occurs only in Firefox version 54 and later due to security changes.
For more information, see Mozilla Bug 1373791 - Cannot connect to wss websocket server and Mozilla KB Set up Certificate Authorities (CAs) in Firefox | Firefox for Enterprise Help