Ashish Modi
1 min readJul 10, 2020

--

I haven't worked on socket io as such but it should be straight forward. Basically on change event handler from change stream, you need to use `io.emit('tweet', tweet);`

```

var io = require('socket.io')(80);

changeStream.on("change", change => {

io.emit('tweet', tweet); // this will be code which will emit

});

```

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Ashish Modi
Ashish Modi

Written by Ashish Modi

Architect with 14+ years of exp in app’n development & architecture. Worked on node.js, .net, mongodb, serverless, elasticssearch and AWS.

No responses yet

Write a response