mirror of
https://github.com/imjasonh/gocf
synced 2026-07-07 02:22:17 +00:00
15 lines
255 B
JavaScript
15 lines
255 B
JavaScript
import { connect } from "cloudflare:sockets";
|
|
import mod from "./app.wasm";
|
|
|
|
export async function loadModule() {
|
|
return mod;
|
|
}
|
|
|
|
export function createRuntimeContext({ env, ctx, binding }) {
|
|
return {
|
|
env,
|
|
ctx,
|
|
connect,
|
|
binding,
|
|
};
|
|
}
|