1. There is no reason for a server to unescape HTML while sending it through a websocket to be processed by JS
2. There is no reason why it would encode double quotes into single quotes during a proper unescaping process.
3. Sending HTML through websockets suggests you have more problems, like constructing DOM elements post pageload from strings, which have serious performance problems.