vans163
04/14/2021, 2:32 AMvans163
04/14/2021, 2:54 AMvans163
04/14/2021, 2:54 AMvans163
04/14/2021, 2:54 AMvans163
04/14/2021, 3:06 AMvans163
04/14/2021, 3:07 AMvans163
04/14/2021, 3:07 AMvans163
04/14/2021, 3:07 AMvans163
04/14/2021, 3:12 AMrobert
04/14/2021, 4:59 AMwrangler publish --delete-class Counter
but I get this error:
"code": 10061,
"message": "Cannot create binding for class Counter because it is not currently configured to implement durable objects. Did you forget to apply a --new-class migration to it?"
(wrangler version 1.15.0-custom-builds-rc.2
with repo: https://github.com/cloudflare/durable-objects-template)
any thoughts?nightvisi0n
04/14/2021, 6:10 AMnightvisi0n
04/14/2021, 10:45 AMrequest.cf
value directly at the eyeball request, but it seems it's not available there as well.
I created a minimal example based on the durable-objects-rollup-esm
template to reproduce this: https://gist.github.com/nightvisi0n/48c4844a0a81103c31c5071383889cda (I stripped away everything related to DO for simplicity)mehdiiii
04/14/2021, 12:26 PMalex.b
04/14/2021, 1:36 PMvans163
04/14/2021, 1:56 PMvans163
04/14/2021, 1:57 PMvans163
04/14/2021, 1:57 PMjed
04/14/2021, 1:59 PMconst webSocketPair = new WebSocketPair()
const [client, server] = Object.values(webSocketPair)
any particular reason it's not just this?
const [client, server] = new WebSocketPair()
vans163
04/14/2021, 2:02 PMvans163
04/14/2021, 2:02 PMvans163
04/14/2021, 2:02 PMvans163
04/14/2021, 2:02 PMvans163
04/14/2021, 2:03 PMjed
04/14/2021, 2:03 PMWebSocketPair
return a non-iterable with numeric keys.jessepmason
04/14/2021, 2:04 PMjed
04/14/2021, 2:04 PMconst state = useState(0)
const [count, setCount] = Object.values(state)
vans163
04/14/2021, 2:13 PMjed
04/14/2021, 2:16 PMjed
04/14/2021, 2:16 PMjs
*[Symbol.iterator]() {
yield* Object.values(this)
}
jed
04/14/2021, 2:17 PMObject.values
call.