checkpoint: pre-split branch cleanup
This commit is contained in:
parent
4c2ae2e5b7
commit
b5db7a7753
276 changed files with 35912 additions and 60119 deletions
48
test-sse.mjs
48
test-sse.mjs
|
|
@ -1,24 +1,24 @@
|
|||
import EventSource from 'eventsource';
|
||||
|
||||
const projectRoot = 'C:\\Users\\Zenchant\\codex\\beadboard';
|
||||
const url = `http://localhost:3001/api/events?projectRoot=${encodeURIComponent(projectRoot)}`;
|
||||
|
||||
console.log(`Connecting to ${url}...`);
|
||||
const es = new EventSource(url);
|
||||
|
||||
es.on('open', () => console.log('OPEN'));
|
||||
es.on('error', (e) => {
|
||||
console.error('ERROR');
|
||||
console.error(e);
|
||||
});
|
||||
|
||||
['message', 'issues', 'telemetry', 'activity'].forEach(event => {
|
||||
es.addEventListener(event, (e) => {
|
||||
console.log(`[${event.toUpperCase()}]`, e.data);
|
||||
});
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
console.log('Closing after 30s');
|
||||
es.close();
|
||||
}, 60000);
|
||||
import EventSource from 'eventsource';
|
||||
|
||||
const projectRoot = 'C:\\Users\\Zenchant\\codex\\beadboard';
|
||||
const url = `http://localhost:3001/api/events?projectRoot=${encodeURIComponent(projectRoot)}`;
|
||||
|
||||
console.log(`Connecting to ${url}...`);
|
||||
const es = new EventSource(url);
|
||||
|
||||
es.on('open', () => console.log('OPEN'));
|
||||
es.on('error', (e) => {
|
||||
console.error('ERROR');
|
||||
console.error(e);
|
||||
});
|
||||
|
||||
['message', 'issues', 'telemetry', 'activity'].forEach(event => {
|
||||
es.addEventListener(event, (e) => {
|
||||
console.log(`[${event.toUpperCase()}]`, e.data);
|
||||
});
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
console.log('Closing after 30s');
|
||||
es.close();
|
||||
}, 60000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue