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
Hello
I can send strings, booleans, ints or another value or variable to backend?
I use the events but I don't understand what is the method to send values, I only can run a code whit a event but without a value from the Frontend
Example:
I create a form, the form get Username and password
When click "Send" with a event to backend, the event run the code but don't send the values to golang
How I compare this values with the values in the backend?
Or how i can send the values?
Thanks! :D
The text was updated successfully, but these errors were encountered:
ws.send(JSON.stringify({ event: "Chrome", variables: v })) (v is a parameter of a function)
I added Variables string json:"variables"`` into Event struct
I added a global variable into gotron.go var UserVar = make(chan Event) after to Event struct
In function "onSocket" after of:
Hello
I can send strings, booleans, ints or another value or variable to backend?
I use the events but I don't understand what is the method to send values, I only can run a code whit a event but without a value from the Frontend
Example:
I create a form, the form get Username and password
When click "Send" with a event to backend, the event run the code but don't send the values to golang
How I compare this values with the values in the backend?
Or how i can send the values?
Thanks! :D
The text was updated successfully, but these errors were encountered: