Skip to content

Need help in debugging the websocket connection #1176

Answered by mpscholten
var19 asked this question in Q&A
Discussion options

You must be logged in to vote

Any message after that isn't getting sent.

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)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@var19
Comment options

@mpscholten
Comment options

@var19
Comment options

Answer selected by var19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants