totaljs / framework

Node.js framework
http://www.totaljs.com
Other
4.36k stars 450 forks source link

websocket send string encodeing #622

Closed ckpiggy closed 6 years ago

ckpiggy commented 6 years ago

I use websocket to send string hello jorge to client (https://www.websocket.org/echo.html), and the client display %22hello%20jorge%22.

It seems the string has been encoded before sending. How can I send original string to client ?

petersirka commented 6 years ago

Hi @ckpiggy, you can disable it easily: https://docs.totaljs.com/latest/en.html#api~FrameworkConfiguration~default-websocket-encodedecode

But you will have a problem with UTF-8 chars.