Radoš
Radoš
CDCloudflare Developers
Created by CanRau on 12/12/2024 in #workers-help
Uncaught ReferenceError: MessageChannel is not defined
In some other parts of the Rect code (similar to this one), there is condition to check if MessageChannel exists, so this is why assume it is issue there.
23 replies
CDCloudflare Developers
Created by mohanram on 12/6/2024 in #workers-help
GPRC is very slow compared to HTTP service bindings when using workers smart placement
@Walshy | Workers/Pages I am sorry if I tagged you wrongly :NotLikeThis: , but not sure who to tag or where to reach out. Thanks!
5 replies
CDCloudflare Developers
Created by mohanram on 12/6/2024 in #workers-help
GPRC is very slow compared to HTTP service bindings when using workers smart placement
Just tested this and indeed it is 4x slower via Service Binding Entrypoint than via fetch. Where can we report this if not intentional?
5 replies
CDCloudflare Developers
Created by CanRau on 12/12/2024 in #workers-help
Uncaught ReferenceError: MessageChannel is not defined
@jado I think it is the React issue as MessageChannel is for the browsers only (or browser context).
23 replies
CDCloudflare Developers
Created by Akmittal on 12/21/2024 in #pages-help
How to proxy pages /api requests to cloudflare workers app
2 replies
CDCloudflare Developers
Created by mohanram on 12/6/2024 in #workers-help
GPRC is very slow compared to HTTP service bindings when using workers smart placement
Ultra slow for me too with the same setup (service binding / entrypoint / d1).
5 replies
CDCloudflare Developers
Created by CanRau on 12/12/2024 in #workers-help
Uncaught ReferenceError: MessageChannel is not defined
23 replies
CDCloudflare Developers
Created by CanRau on 12/12/2024 in #workers-help
Uncaught ReferenceError: MessageChannel is not defined
the code throwing error
// react-dom-server.browser.production.js
var channel = new MessageChannel(), taskQueue = [];
channel.port1.onmessage = function() {
var task = taskQueue.shift();
task && task();
};
function scheduleWork(callback) {
taskQueue.push(callback);
channel.port2.postMessage(null);
}
// react-dom-server.browser.production.js
var channel = new MessageChannel(), taskQueue = [];
channel.port1.onmessage = function() {
var task = taskQueue.shift();
task && task();
};
function scheduleWork(callback) {
taskQueue.push(callback);
channel.port2.postMessage(null);
}
23 replies
CDCloudflare Developers
Created by Md.Sadiq on 10/5/2024 in #workers-help
Can i know how to create an Express App using cloudflare workers
Replace Express with Hono or Elysia
12 replies
CDCloudflare Developers
Created by Murder Chicken on 9/27/2024 in #workers-help
RPC, `using`, Experimental Wrangler and Observability
Yes, when I log the call result, it shows ProxyObject, but then when I tried to call result.someFunction it was always undefined. Like it closed connection already. But maybe I was too tired and I did some rookie mistake 😄
9 replies
CDCloudflare Developers
Created by lucasp on 9/26/2024 in #workers-help
any way to use the binding with hono without passing the service url?
You can use RPC, so you do not have to use fetch and also, you do not have to make it public (no public url). https://developers.cloudflare.com/workers/runtime-apis/rpc/ https://blog.cloudflare.com/javascript-native-rpc/ https://github.com/cloudflare/js-rpc-and-entrypoints-demo
8 replies
CDCloudflare Developers
Created by Murder Chicken on 9/27/2024 in #workers-help
RPC, `using`, Experimental Wrangler and Observability
I have gone thru rabbit hole of sharing types between Service and Caller, but trying to call function from AuthService class thats extends RpcTarget resulted in undefined every time. I am going to play with it in next few days, so if I stumble up on something I will let you know.
9 replies
CDCloudflare Developers
Created by Murder Chicken on 9/27/2024 in #workers-help
RPC, `using`, Experimental Wrangler and Observability
Does [Symbol.dispose]() works for you as it is also part of the TC39? https://github.com/cloudflare/js-rpc-and-entrypoints-demo In this repo, they are using it without using even with RpcTarget
9 replies