DOMExeption atob()
I have a problem with decode function atob().
It's generate an error :
Uncaught DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded. at WebSocket.ws.onmessage (http://localhost/index.php:237:38)
My code in index.php : // Send all recieved messages to SSHyClient.Transport.handle() ws.onmessage = function(e) { // Convert the recieved data from base64 to a string transport.parceler.handle(window.atob(e.data)); };
My WebSocket is turn on correctly on Debian Server in my host localhost.
I am a beginner in programming.
Thank you for your help !
Seems related to https://github.com/stuicey/SSHy/issues/18
Can you make sure you've installed the correct version of wsproxy?
Thank you !
It’s Work with the correct wsproxy !!! :)
Someone, I have second problem.
Debian 6,7,8 —> the connexion work fine
Debian 9 —> websocket return error 1005.
Idea ?
Regards,