Comments (5)
@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.
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.
@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.
@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.
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)
- Compiled Elm code missing from heroku HOT 10
- Error while running command npm start HOT 7
- Error. Can't run example. HOT 3
- Why do you use ports to send message instead of WebSocket.send HOT 1
- Unable to run the demo version in 2018 HOT 1
- Reply.view error HOT 2
- Send chat message from command line HOT 1
- Time and Date should be set on the serverside HOT 1
- Update Dependencies to latest version of Hapi
- Add CONTRIBUTING.md File to Repo
- Elm UI with Tachyons HOT 21
- Not working locally on npm start
- Empty message form submitting anyway HOT 1
- (DO NOT) UPDATE SOCKET.IO to v2
- Using Tachyons to replicate 'Send' form HOT 2
- Redis deprecation warnings on server start
- Epic: creating dwylchat HOT 1
- Create online users widget
- create initial design
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hapi-socketio-redis-chat-example.