Antonio Cheong
Antonio Cheong
There is of course the option to rewrite the API of the server which is trivial as the current implementation is very modular. We don't even have to break compatibility...
> [!Note] > I have deleted the contents of this repository as it wasn't well thought out. This will take a few weeks (max 1 month) to get functional as...
My confusion revolves around how to pull and push data. Here is the code for pulling a file: ```go case "pull": var pull struct { UID any `json:"uid" binding:"required"` }...
After trying out a few libraries, I still went with vanilla websockets. My idea goes something like this: `Connect` handles the initial connection. `onpush(callback: Function)` can be used for when...
https://github.com/sindresorhus/p-event works well with emitters and allow me to simply wait for data to be emitted from `onmessage` callback in other functions
@oskardotglobal TypeScript and Node is driving me insane. Could you review my https://github.com/acheong08/obi-sync-lib/blob/main/tsconfig.json and https://github.com/acheong08/obi-sync-lib/blob/main/package.json? Running `tsc` gives me broken imports in JS ```js Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/var/home/acheong/Projects/obi-sync-lib/lib/src' is...
For example: ```js import { MakeKeyHash } from "./crypt"; ``` is supposed to be ```js import { MakeKeyHash } from "./crypt.js"; ```
I ended up using esbuild to bundle everything together. Not sure if that is optimal but at least it works
> You should really try https://bun.sh/. It's a runtime, package manager and bundler fully compatible with node. Just tried out Bun from their quickstart page. It worked on first try!
Looks like there are still a few incompatibilities: e.g. `crypto.subtle` is missing when running `bun build` but works when running directly from the typescript