Giter VIP home page Giter VIP logo

Comments (5)

nelsonic avatar nelsonic commented on June 21, 2024 1

@finnhodgkin are you referring to this one: https://github.com/mgold/elm-socketio ? 🤔
I agree with the idea of moving away from Socket.io for the Phoenix-backed app.
Can you please link to where you used native sockets in your Hapi app?

from hapi-socketio-redis-chat-example.

ZooeyMiller avatar ZooeyMiller commented on June 21, 2024 1

We've ended up going with socket.io, so that we can have the Elm chat talk to the non-elm chat and vice versa, and so that we can learn how to work with ports a little more.

Having dealt with Elm's own WebSocket library in the online/offline app that Finn linked we felt learning how to do it with ports would be beneficial, and mean that it fits better in this repo.

If we took out socket.io we'd more or less have to build an entire new back end which doesn't make much sense when the focus for this is front end with Elm.

If @finnhodgkin is satisfied with this I'll close this issue

from hapi-socketio-redis-chat-example.

finnhodgkin avatar finnhodgkin commented on June 21, 2024

@nelsonic Yep that's the one. My search wasn't very extensive so there may be a nicer, more up to date package. Today's the day for a less speculative look 👍

Here's our hapi/ws/elm prototype from a few days ago: https://github.com/finnhodgkin/Elm-Online-Offline/tree/elm-heroku-test

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on June 21, 2024

@finnhodgkin your prototype looks good. 👍
https://github.com/finnhodgkin/Elm-Online-Offline/blob/b36c7b51fd0a98d650b30f74da9f046908604f0b/node-sockets/server.js
I'm happy for you to sub out Socket.io for Native WebSockets, but please write a couple of tests before you dive in. 😉

from hapi-socketio-redis-chat-example.

finnhodgkin avatar finnhodgkin commented on June 21, 2024

I'm fine with that 👍

It makes sense not to worry about it too much as we'll be moving to Pheonix sockets at some point in the future anyway.

from hapi-socketio-redis-chat-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.