-
Notifications
You must be signed in to change notification settings - Fork 50
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
start command to send data #16
Comments
Hello, |
thanks for the fast reply. |
Yes, you can send commands from browser with javascript.
|
Here is example project: https://github.com/staskobzar/amiws_queue |
Thanks, I know this way to communicate with websocket, but I would like to add in the Amiws source files the possibility of NOT immediately sending all the json data to the browser, but after the handshake, wait my input to start the communication . Which source file or function should I work on? |
May you can just implement delay to connect and send in your javascript? I am sorry, but I probably do not understand what you are trying to do. Javascript is all under your control. You can simply connect amiws via websocket when your data is ready. |
ok, i will try the best solution thanks. |
I was using mongoose library for the networking (https://github.com/cesanta/mongoose/) |
Hi, you can have the websocket server (amiws) send data to the client only after receiving a command from the Javascript script.
For example "ws.send ('start')"?
if yes, how can i do?
The text was updated successfully, but these errors were encountered: