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

WebSocket encodedecode #52

Closed
KangGeunSu opened this issue Jan 8, 2020 · 9 comments
Closed

WebSocket encodedecode #52

KangGeunSu opened this issue Jan 8, 2020 · 9 comments

Comments

@KangGeunSu
Copy link

Hello,
When a message is received from the client, it is encodeURIComponent.

So I added to my config.

default_websocket_encodedecode	   :	false

Data comes in well.

but...The component settings window does not open.

@petersirka
Copy link
Collaborator

  • which version of Total.js do you use?
  • what type of browser + version do you use?
  • what OS do you use?
  • do you use some antivirus or proxy?

@KangGeunSu
Copy link
Author

Total.js versionis 3.3.0
browser is chrome 79.0.3945.79
my OS is Ubuntu 18.04.3 LTS
Do not use.

@KangGeunSu
Copy link
Author

KangGeunSu commented Jan 8, 2020

image
Click to send the data.

flow version is 6.1.4
It is just encoded.

@petersirka
Copy link
Collaborator

Sorry, I read badly your question :-D

default_websocket_encodedecode is very important for UTF-8 characters, you need to enable it. Flow uses j-WebSocket component and the component encodes all data via encodeURIComponent and decodes all received data via decodeURIComponent.

Why did you disable it?

@KangGeunSu
Copy link
Author

I use a websocket Server component

When another client (arduino, Small products, etc.) receives a message, it has to decode the received message again.

@petersirka
Copy link
Collaborator

You can create another connection to another client via https://docs.totaljs.com/latest/en.html#api~WebSocketClient

@KangGeunSu
Copy link
Author

Clinet is not Total.js
Client is Micro board(Commercial equipment)
Does not support.. OTL...

Many modifications create components separately.

Total.js is really the best framework!
Thank you very much.

@KangGeunSu
Copy link
Author

Total.js is really the best framework!
Thank you very much.

@petersirka
Copy link
Collaborator

Thank you very much!

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