1 parent
531b99b0da
commit
f64ffb27df
1 file changed
+1
-1
+1
-1
@@ -206,7 +206,7 @@ export default async function createApp(vite) {
|
||||
'Content-Encoding' : 'none'
|
||||
});
|
||||
|
||||
res.write(`data: ${JSON.stringify({ time: new Date, shareId: id, eventType: 'message' })}\n\n`);
|
||||
res.write(`data: ${JSON.stringify({ init: Date.now().toString(), shareId: id, eventType: 'message' })}\n\n`);
|
||||
|
||||
if(!initStreamListener){
|
||||
initStreamListener = true;
|
||||
|
||||
Reference in new issue
Block a user