aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/server.classes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/api/server.classes.ts')
-rw-r--r--src/bun.js/api/server.classes.ts21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/bun.js/api/server.classes.ts b/src/bun.js/api/server.classes.ts
index b3d174957..3aaea871f 100644
--- a/src/bun.js/api/server.classes.ts
+++ b/src/bun.js/api/server.classes.ts
@@ -45,7 +45,6 @@ export default [
args: ["JSUint8Array", "bool"],
},
},
-
publishText: {
fn: "publishText",
length: 2,
@@ -62,10 +61,21 @@ export default [
args: ["JSString", "JSUint8Array"],
},
},
-
+ ping: {
+ fn: "ping",
+ length: 1,
+ },
+ pong: {
+ fn: "pong",
+ length: 1,
+ },
close: {
fn: "close",
- length: 1,
+ length: 3,
+ },
+ terminate: {
+ fn: "terminate",
+ length: 0,
},
cork: {
fn: "cork",
@@ -103,11 +113,6 @@ export default [
fn: "isSubscribed",
length: 1,
},
-
- // topics: {
- // getter: "getTopics",
- // },
-
remoteAddress: {
getter: "getRemoteAddress",
cache: true,