Closed mavrick closed 8 years ago
Heya!
You need to include the file on the client-side. Pushes are basically writing the data to the browser's cache, so when it will see src="/jquery.js"
- browser will load the pushed response.
@mavrick / @indutny Does this line work "res.push? Since that app is an express app, its giving me Property 'Push' does not exist on type response. Was there a way I can get it to work?
I'm trying to figure out the proper implementation of using push streams inside the express middleware callback.
How to use push streams from a SPA still feels a bit vague from the documentation.
Do I still include the
<script src="/jquery.js"></script>
within the HTML or can it be left out now?Thanks in advance