add cf worker poc

This commit is contained in:
zizifn
2023-05-17 12:05:40 +08:00
committed by zizifn
parent 5a2e475652
commit d56791c5d4
17 changed files with 455 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
// @ts-ignore
import { connect } from 'cloudflare:sockets';
export const onRequest: PagesFunction<Env> = async (context) => {
export const onRequest: PagesFunction<any> = async (context) => {
console.log('start fetch');
const socket = connect({
hostname: 'neverssl.com',