Need help in debugging the websocket connection #1176
-
So the issue is that sending a message is only working once, at the start. Any message after that isn't getting sent. HTML
JS
Controller
After a lot of debugging, I found that, for some reason |
Beta Was this translation helpful? Give feedback.
Answered by
mpscholten
Oct 27, 2021
Replies: 1 comment 3 replies
-
What's the error? If you want the websocket to output the received message in a loop you need this: instance WSApp MyController where
initialState = MyController
run = do
forever do
msg :: Text <- receiveData
sendTextData (msg) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
var19
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's the error?
If you want the websocket to output the received message in a loop you need this: