Compare commits

...

4 Commits

Author SHA1 Message Date
Ciro Spaciari
24396666b8 Apply suggestion from @markovejnovic
Co-authored-by: Marko Vejnovic <marko@bun.com>
2026-01-08 15:24:05 -08:00
Ciro Spaciari
ae77efabf4 opsie 2026-01-08 15:24:05 -08:00
Ciro Spaciari
f1fff0b5c5 better 2026-01-08 15:24:05 -08:00
Ciro Spaciari
c785c40db3 disable 2026-01-08 15:24:05 -08:00

View File

@@ -1380,6 +1380,9 @@ pub fn NewSocket(comptime ssl: bool) type {
if (this.socket.isDetached() or this.socket.isNamedPipe()) {
return .js_undefined;
}
if (this.isServer()) {
return globalObject.throw("Server-side upgradeTLS is not supported. Please upvote https://github.com/oven-sh/bun/issues/25044 if you need this support.", .{});
}
const args = callframe.arguments_old(1);
if (args.len < 1) {