diff options
author | 2021-10-07 21:29:16 -0700 | |
---|---|---|
committer | 2021-10-07 21:29:16 -0700 | |
commit | 5a03dfb9a4f00adb811988a4522221ee065ea180 (patch) | |
tree | b7c9bab6094ca6afe15e1d3378415e427679a274 /src/api/schema.js | |
parent | fa1aa301e8827a453e07b671c03e870c564679a1 (diff) | |
download | bun-5a03dfb9a4f00adb811988a4522221ee065ea180.tar.gz bun-5a03dfb9a4f00adb811988a4522221ee065ea180.tar.zst bun-5a03dfb9a4f00adb811988a4522221ee065ea180.zip |
Schema
Diffstat (limited to 'src/api/schema.js')
-rw-r--r-- | src/api/schema.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/api/schema.js b/src/api/schema.js index 31f5f11d8..029a3378d 100644 --- a/src/api/schema.js +++ b/src/api/schema.js @@ -1711,6 +1711,10 @@ function decodeTransformOptions(bb) { result["disable_hmr"] = !!bb.readByte(); break; + case 25: + result["port"] = bb.readUint16(); + break; + default: throw new Error("Attempted to parse invalid message"); } @@ -1891,6 +1895,12 @@ bb.writeByte(encoded); bb.writeByte(24); bb.writeByte(value); } + + var value = message["port"]; + if (value != null) { + bb.writeByte(25); + bb.writeUint16(value); + } bb.writeByte(0); } |