You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 !
The text was updated successfully, but these errors were encountered:
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 !
The text was updated successfully, but these errors were encountered: