Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add beginner-friendly communication samples for HTTP/(Web)Socket implementation #5705

Open
1 task
projektorius96 opened this issue Apr 9, 2024 · 1 comment
Labels
a.libraries Relating to the Dart standard libraries. a.tut.tutorial Relates to the Tutorial section of dart.dev co.request Community ask for documentation e2-days Can complete in < 5 days of normal, not dedicated, work from.user Issue raised by user p3-low Valid but not urgent concern. Resolve when possible. Encourage upvote to surface. st.triage.ltw Indicates Lead Tech Writer has triaged

Comments

@projektorius96
Copy link

projektorius96 commented Apr 9, 2024

What information needs to be added?

Learning Dart (as I still do), I wrote myself a simple implementation of WebSocket-based ping-pong server to depict the proof-of-concept communication between Dart host (server) and the browser that supports WebSocket API (sample). Mundane example would be "state management" solution outside browser that encompasses Dart ecosystem and powerful service workers on browser-of-choice end.

Where should this new content appear?

Genuinely, a good place would be an idiomatic Development/Web Apps/Communication (or top-level "Guides" section).

Cheers ! ♥

I would like to fix this problem.

  • I will try and fix this problem on dart.dev.
@projektorius96 projektorius96 added co.request Community ask for documentation from.user Issue raised by user labels Apr 9, 2024
@parlough parlough added a.libraries Relating to the Dart standard libraries. p3-low Valid but not urgent concern. Resolve when possible. Encourage upvote to surface. a.tut.tutorial Relates to the Tutorial section of dart.dev e2-days Can complete in < 5 days of normal, not dedicated, work labels Apr 9, 2024
@projektorius96
Copy link
Author

projektorius96 commented Apr 17, 2024

Hi, @parlough . I have just written a native messaging host implementation, you can see the tip-of-tree, it is Windows-users oriented, but just with a few tweaks as described in specification, could be adjusted for Linux/Mac users respectively.

I am tagging @MaryaBelanger as this is technically could be used in tandem with package:chrome_extension, so again "How to use JS interop" would contribute to better understanding of how to port the Chrome extension's JavaScript codebase to Dart syntax, decreasing JavaScript consumption to minimum.

To encompass the advantage of using NMH over the formerly suggested WebSocket-based implementation of mine. is that NMH has a tendency to better keeping Chrome extension service worker being alive. The disadvantage that it requires a bit more of the setup especially for Windows users as touching registry should be last resort, better never at all 😆

Cheers ! 👍🏼

@atsansone atsansone added the st.triage.ltw Indicates Lead Tech Writer has triaged label Apr 18, 2024
@atsansone atsansone changed the title Beginner-friendly communication samples for HTTP/(Web)Socket implementation Add beginner-friendly communication samples for HTTP/(Web)Socket implementation Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a.libraries Relating to the Dart standard libraries. a.tut.tutorial Relates to the Tutorial section of dart.dev co.request Community ask for documentation e2-days Can complete in < 5 days of normal, not dedicated, work from.user Issue raised by user p3-low Valid but not urgent concern. Resolve when possible. Encourage upvote to surface. st.triage.ltw Indicates Lead Tech Writer has triaged
Projects
None yet
Development

No branches or pull requests

3 participants