Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.
Like this? Check React Native vs Flutter: https://gist.github.com/tkrotoff/93f5278a4e8df7e5f6928eff98684979
| // bun --hot sse.ts | |
| import { randomUUID } from "node:crypto"; | |
| import { EventEmitter } from "node:events"; | |
| const sseEvents = new EventEmitter(); | |
| export const sse = (data) => { | |
| sseEvents.emit( | |
| "sse", | |
| `id: ${randomUUID()}\ndata: ${JSON.stringify(data)}\n\n` |
| import * as http from 'http' | |
| import { URL } from 'url' | |
| import { stat, readFile } from 'fs/promises'; | |
| import { join, extname } from 'path'; | |
| // you can pass the parameter in the command line. e.g. node http_server.js 3000 | |
| const port = process.argv[2] || 9000; | |
| // maps file extention to MIME types |
Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.
Like this? Check React Native vs Flutter: https://gist.github.com/tkrotoff/93f5278a4e8df7e5f6928eff98684979