https://discord.cloudflare.com logo
Join Discord
Powered by
# durable-objects
  • c

    Ceru ©

    03/09/2021, 3:19 AM
    but that might also just be the Workers interface, not easy to tell as all i get is "Error communicating with origin server echo.websocket.org"
  • g

    ginkoid

    03/09/2021, 3:29 AM
    hmm i got
    expected cert != nullptr [0 != nullptr]; TLS peer provided no certificate
  • g

    ginkoid

    03/09/2021, 3:30 AM
    in the playground when connecting to echo.websocket.org
  • a

    ai

    03/09/2021, 3:31 AM
    Maybe try
    http
    or
    ws
    ?
  • g

    ginkoid

    03/09/2021, 3:32 AM
    http
    seems to work
  • g

    ginkoid

    03/09/2021, 3:32 AM
    i dont see any issues with echo.websocket.org's cert tho
  • g

    ginkoid

    03/09/2021, 3:33 AM
    other ws services work fine with
    https
  • c

    Ceru ©

    03/09/2021, 3:47 AM
    might just be their implementation
  • c

    Ceru ©

    03/09/2021, 3:47 AM
    ill test it with other services
  • p

    PhilipA

    03/09/2021, 12:38 PM
    I managed to get a working websocket between two Durable Objects, so it can be done.
  • c

    Ceru ©

    03/09/2021, 12:39 PM
    see #783765338692386886
  • p

    PhilipA

    03/09/2021, 12:45 PM
    Ahh yes. I'm not entirely sure of the use cases now though - any worker created websocket is still subject to the request context, so you would need a long lived (websocket?) connection to establish a... long lived connection?!
  • p

    PhilipA

    03/09/2021, 12:48 PM
    The above thought does raise a question (maybe that has been answered but I can't find it on search) - is a DO with an established external WS connection subject to the same CPU / subrequest limits as a normal worker?
  • c

    Ceru ©

    03/09/2021, 12:48 PM
    subrequest limit is still 50 on a normal Worker, unsure about DO
  • p

    PhilipA

    03/09/2021, 4:59 PM
    I can confirm the subrequest limit is the same on DO
  • d

    danawoodman

    03/10/2021, 4:36 AM
    Who do I have to bribe/kiss/etc to get into the DO beta? 🧐
  • d

    danawoodman

    03/10/2021, 4:37 AM
    Please DM and I will send Doge and or kisses
  • a

    albert-zhao

    03/10/2021, 6:06 AM
    Hey Dana, if you already applied online, just know there's a long waiting list to get into the beta. But the good news is the storage team is working quickly so DO can move to open beta soon. Appreciate your patience
  • d

    danawoodman

    03/10/2021, 7:05 AM
    Ok, if you change your mind about bribery or flattery, let know 😉
  • l

    Lewis

    03/10/2021, 7:51 AM
    🤔
  • k

    Kevin W - Itty

    03/10/2021, 7:11 PM
    I'd like to second this... I'm willing to name an unborn child after whoever lets me beta DO. It won't be my child, but I'll find one somewhere...
  • a

    AwesomestGamer

    03/12/2021, 8:57 PM
    Continued from DMs with @albert-zhao > I have a question about Durable Objects: can they be used for proxying WebSocket connections into TCP connections? > Specifically, currently I’m building a browser application that needs to connect to a server over TCP. Since this can’t be done in the browser, we currently have a proxy server set up which the client connects to over WebSocket; and then the proxy does the TCP Connection. > > This creates latency issues (proxy server can be far away from both ends), so we’re wondering if we can switch over to Cloudflare to potentially resolve that. Is this possible, and, if it is, can we be given access to Durable Objects?
  • h

    haneefmubarak

    03/12/2021, 9:13 PM
    The Workers platform broadly does not let you create raw TCP connections at this point in time; we strictly only allow
    http
    and
    ws
    (websocket) connections
  • a

    AwesomestGamer

    03/12/2021, 9:13 PM
    Any chance of it being allowed in the near future?
  • a

    AwesomestGamer

    03/12/2021, 9:14 PM
    Or, is there another product that does allow this?
  • a

    albert-zhao

    03/12/2021, 9:40 PM
    Not at the moment, but someday we hope to have TCP Workers
  • a

    AwesomestGamer

    03/12/2021, 9:40 PM
    Got it, thanks.
  • a

    andrew | 1003

    03/12/2021, 9:44 PM
    future announcement Matthew tweeted about👀 ?
  • a

    albert-zhao

    03/12/2021, 9:47 PM
    nah that would be a huge project, creating a worker that could access raw TCP data stream. There's more than enough work for the team, especially with DO 😉
  • w

    wilbo007

    03/13/2021, 5:06 PM
    Would be cool to implement an online type-racer competition through DO
1...272829...567Latest