Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOMExeption atob() #28

Open
wizard8387 opened this issue Oct 20, 2019 · 2 comments
Open

DOMExeption atob() #28

wizard8387 opened this issue Oct 20, 2019 · 2 comments

Comments

@wizard8387
Copy link

wizard8387 commented Oct 20, 2019

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 !

@wizard8387 wizard8387 changed the title DOMExemtion DOMExeption atob() Oct 20, 2019
@stuicey
Copy link
Owner

stuicey commented Oct 21, 2019

Seems related to #18

Can you make sure you've installed the correct version of wsproxy?

@wizard8387
Copy link
Author

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants