summaryrefslogtreecommitdiff
path: root/std/ws/mod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/ws/mod.ts')
-rw-r--r--std/ws/mod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/ws/mod.ts b/std/ws/mod.ts
index 809654a06..3332ed8dd 100644
--- a/std/ws/mod.ts
+++ b/std/ws/mod.ts
@@ -322,7 +322,7 @@ class WebSocketImpl implements WebSocket {
return d;
}
- async send(data: WebSocketMessage): Promise<void> {
+ send(data: WebSocketMessage): Promise<void> {
const opcode =
typeof data === "string" ? OpCode.TextFrame : OpCode.BinaryFrame;
const payload = typeof data === "string" ? encode(data) : data;
@@ -336,7 +336,7 @@ class WebSocketImpl implements WebSocket {
return this.enqueue(frame);
}
- async ping(data: WebSocketMessage = ""): Promise<void> {
+ ping(data: WebSocketMessage = ""): Promise<void> {
const payload = typeof data === "string" ? encode(data) : data;
const frame = {
isLastFrame: true,