Skip to content

Commit

Permalink
add ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Emo-Damage committed Jun 3, 2023
1 parent ec4e303 commit 9a07dea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/worker-vless.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <!--GAMFC-->version base on commit 10ccfd24d7181f1df9fa92aaf191598a0363464a, time is 2023-06-03 12:25:47 UTC<!--GAMFC-END-->.
// @ts-ignore
import { connect } from 'cloudflare:sockets';

// How to generate your own UUID:
Expand Down Expand Up @@ -52,6 +53,7 @@ export default {
async function vlessOverWSHandler(request) {

/** @type {import("@cloudflare/workers-types").WebSocket[]} */
// @ts-ignore
const webSocketPair = new WebSocketPair();
const [client, webSocket] = Object.values(webSocketPair);

Expand Down Expand Up @@ -140,6 +142,7 @@ async function vlessOverWSHandler(request) {

return new Response(null, {
status: 101,
// @ts-ignore
webSocket: client,
});
}
Expand Down

0 comments on commit 9a07dea

Please sign in to comment.