mirror of
https://github.com/denoland/deno.git
synced 2024-12-01 16:51:13 -05:00
841b758d0d
When we migrate to op-import-per-extension, we will want to ensure that ops have one and only one place where they are imported. This tackles the ops that are imported via `ensureFastOps`, but does not yet tackle direct `ops` imports. Landing ahead of https://github.com/denoland/deno_core/pull/393
35 lines
818 B
JavaScript
35 lines
818 B
JavaScript
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
import { core } from "ext:core/mod.js";
|
|
const {
|
|
op_ws_create,
|
|
op_ws_close,
|
|
op_ws_send_binary,
|
|
op_ws_send_binary_ab,
|
|
op_ws_send_text,
|
|
op_ws_next_event,
|
|
op_ws_get_buffer,
|
|
op_ws_get_buffer_as_string,
|
|
op_ws_get_error,
|
|
op_ws_send_ping,
|
|
op_ws_get_buffered_amount,
|
|
op_ws_send_text_async,
|
|
op_ws_send_binary_async,
|
|
op_ws_check_permission_and_cancel_handle,
|
|
} = core.ensureFastOps();
|
|
|
|
export {
|
|
op_ws_check_permission_and_cancel_handle,
|
|
op_ws_close,
|
|
op_ws_create,
|
|
op_ws_get_buffer,
|
|
op_ws_get_buffer_as_string,
|
|
op_ws_get_buffered_amount,
|
|
op_ws_get_error,
|
|
op_ws_next_event,
|
|
op_ws_send_binary,
|
|
op_ws_send_binary_ab,
|
|
op_ws_send_binary_async,
|
|
op_ws_send_ping,
|
|
op_ws_send_text,
|
|
op_ws_send_text_async,
|
|
};
|