Skip to content

Instantly share code, notes, and snippets.

@dominictarr
Forked from Raynos/through vs duplex
Created August 4, 2012 01:08
Show Gist options
  • Save dominictarr/3253235 to your computer and use it in GitHub Desktop.
Save dominictarr/3253235 to your computer and use it in GitHub Desktop.

through stream

.----------------------------------------.
| write(data)-------->emit('data', data`)|
`----------------------------------------`

duplex stream (across a network)

                               |
 .--client-stream---------.    |     .----server-stream-------.
 |                        |    |     |                        |
 |  write(data1) ----------------------> emit('data', data1)  |
 |                        |    |     |                        |
 |  emit('data', data2) <-------------- write(data2)          |
 |                        |    |     |                        |
 `------------------------`    |     `------------------------`
                               |

duplex stream (to an abstraction)

                               |
 .--dnode-stream----------.    | 
 |                        |    |   /* what does dnode do here ? */  
 |  write(data1) --------------->  
 |                        |    |     D N O D E
 |  emit('data', data2) <-------
 |                        |    |   /*  that is up to dnode  */
 `------------------------`    |`
                               |

@manslie3
Copy link

manslie3 commented Jul 8, 2024

The platform offers a diverse range of casino games, including slots, poker, blackjack, and roulette, catering to different tastes and preferences. This variety ensures that players can always find something that suits their mood and skill level https://vegassweeps.app/how-to-download-vegas-sweeps-on-pc/. Moreover, the games are designed with high-quality graphics and sound effects, creating an immersive and engaging experience that rivals that of a real casino. The availability of multiple games also allows players to switch between different types of entertainment, keeping the experience fresh and exciting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment