Skip to content

Cloudflare worker support #85

@sagikazarmark

Description

@sagikazarmark

Following up on #65 and the Discord discussion

I looked at #65 and it looks good for the most part, but the SDK changed significantly since that PR.

Parts that can be salvaged from that PR:

  • Cloudflare doesn't support bidirectional streaming, so the protocol mode either needs to be exported or the CF integration needs to validate it. (Interestingly, the TypeScript SDK seems to allow bidirectional streaming on CF, but I don't think that works. Or does it?)
  • Request-response logic (although I think there are simpler ways to return the data)

Based on my initial tests the first blocker: jsonwebtoken and ring cannot be compiled to wasm (or it's problematic?). They are used in the core. I've used jwt-simple on CF with success.

@slinkydeveloper what do you think about that last bit?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions