Skip to content

curl in webassembly with wss instead of ws #121

@rubenarslan

Description

@rubenarslan

Hi, @jeroen explains here how to get curl to work in webassembly. His example works in the webr REPL, but I could not figure out how to configure the default from ws to wss in quarto live. I tried

webr::eval_js('
  if (typeof Module !== "undefined" && Module.SOCKFS) {
    Module.SOCKFS.websocketArgs = Module.SOCKFS.websocketArgs || {};
    Module.SOCKFS.websocketArgs.url = "wss://";
  }
')

but SOCKFS was not defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions