Confusion with websockets

I’m using these Websockets https://package.elm-lang.org/packages/billstclair/elm-websocket-client/latest/PortFunnel-WebSocket to make a “slack” like chat service and I start by doing makeopenwithkey to open a connection to a server and when I send a message I use makesendwithkey. When I try to send a second message it doesn’t actually send it until I do a connect again with makeopenkey. Shouldn’t it keep the connection open until I close it or does makesendwithkey close the connection?

That doesn’t sound right, but if you want an alternative try https://github.com/simonh1000/elm-websocket

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.