myvtex-sse
v1.2.0
Published
Simple SSE client for myvtex.com sites
Downloads
28,038
Maintainers
Keywords
Readme
myvtex-sse
A simple client for listening to server sent events on myvtex.com.
Usage
import myvtexSSE from 'myvtex-sse'
// in browser, myvtexSSE is exported as global.
myvtexSSE('builder', ({key, body}) => {
console.log('You\'ve got mail:', key, body)
})