Hi Eric, I am not sure I completely understand your question. But if you are referring to Websocket (sub) protocols, https://developer.mozilla.org/en-US/docs/Web/API/WebSocket, then my experience is that you currently cannot specify this when listening on a socket using the el-lang/WebSocket . On the server side you should accept blank "" protocols and then things work.
If you need separation you could look at this package, http://package.elm-lang.org/packages/fbonetti/elm-phoenix-socket/1.0.1/ for inspiration. Mads On Jun 30, 2016 18:57, "Eric Lam" <[email protected]> wrote: I want to use Elm 0.17.0 to do some visualizations. I've been struggling a bit on how I can fit Elm into my system. I'm still a little on the inexperienced side of web programming, so please be kind in some of my ignorances. :P I've got a C++ libwebsockets server that is handling http and my own protocol (let's call it 'debug-info') for information I want to visualize. I have it serving a little html/javascript which works, but I'd love to replace that with something generated by Elm. How do I go about upgrading the websocket in Elm? I've been trying to adapt http://elm-lang.org/examples/websockets for my purposes. I had thought I could just subscribe to the protocol when I want, but it seems I have to make the right handshake and upgrade to the protocol I need. Any tutorials/examples/advise is welcome! Thanks! Eric -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
