aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/server.classes.ts
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-17 06:53:18 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-17 06:53:18 -0700
commitcdff2697efff88dd4059c41954f4bdd84bd3063c (patch)
tree6f0dbb3ec34139ca8fb9bf0d90168e962b71dbfe /src/bun.js/api/server.classes.ts
parentca02695993a3380a75ff4b19fb45814e184b092a (diff)
downloadbun-cdff2697efff88dd4059c41954f4bdd84bd3063c.tar.gz
bun-cdff2697efff88dd4059c41954f4bdd84bd3063c.tar.zst
bun-cdff2697efff88dd4059c41954f4bdd84bd3063c.zip
Implement `sendText`, `sendBinary`, `publishText`, `publishBinary`
Diffstat (limited to 'src/bun.js/api/server.classes.ts')
-rw-r--r--src/bun.js/api/server.classes.ts34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/bun.js/api/server.classes.ts b/src/bun.js/api/server.classes.ts
index 19005c1d4..b3d174957 100644
--- a/src/bun.js/api/server.classes.ts
+++ b/src/bun.js/api/server.classes.ts
@@ -29,6 +29,40 @@ export default [
fn: "send",
length: 2,
},
+ sendText: {
+ fn: "sendText",
+ length: 2,
+ DOMJIT: {
+ returns: "int",
+ args: ["JSString", "bool"],
+ },
+ },
+ sendBinary: {
+ fn: "sendBinary",
+ length: 2,
+ DOMJIT: {
+ returns: "int",
+ args: ["JSUint8Array", "bool"],
+ },
+ },
+
+ publishText: {
+ fn: "publishText",
+ length: 2,
+ DOMJIT: {
+ returns: "int",
+ args: ["JSString", "JSString"],
+ },
+ },
+ publishBinary: {
+ fn: "publishBinary",
+ length: 2,
+ DOMJIT: {
+ returns: "int",
+ args: ["JSString", "JSUint8Array"],
+ },
+ },
+
close: {
fn: "close",
length: 1,