PANE

Bun users can't create ServerWebSocket proxies

10 posts since Nov 2023, all from GitHub.

“What is the problem this feature would solve? While using Bun's WebSocket primites, I often have to write small utility functions like: Essentially the WebSocket equivalent of Response.json() . What is the feature you are proposing to solve the problem? While functions that take…”
GitHub
“What version of Bun is running? 1.4.3 (c6da4a4d3) What platform is your computer? Darwin 25.6.0 arm64 What steps can reproduce the bug? What is the expected behavior? fired=1 clockDelta=0 — the zero delay timer runs and the fake clock does not move, because the requested advance…”
GitHub
“What version of Bun is running? Reproduced on 1.4.0+34cbb9a40 and the latest release, 1.4.2+744846f84 . What platform is your computer? Darwin 25.6.0 arm64 arm (Apple M4). What steps can reproduce the bug? Save this as repro.cjs and run bun repro.cjs : This reproduction has no…”
GitHub

Several users are encountering errors when attempting to create JavaScript proxy objects for ServerWebSocket in Bun. This issue appears to be specific to Bun's environment and prevents users from utilizing this functionality as expected. The problem is reproducible in WSL and Windows environments, hindering development workflows.

devtoolsbugjavascriptwebsocketbun
FIT
0%
SIGNAL
67%
SOURCES10
FRESHEST POSTOCT 18
TRACKED SINCE44D AGO

SOURCES (10)

“What version of Bun is running? 1.4.3 (c6da4a4d3) What platform is your computer? Darwin 25.6.0 arm64 What steps can reproduce the bug? What is the expected behavior? fired=1 clockDelta=0 — the zero delay timer runs and the fake clock does not move, because the requested…”

GITHUBOct 18

“What version of Bun is running? Reproduced on 1.4.0+34cbb9a40 and the latest release, 1.4.2+744846f84 . What platform is your computer? Darwin 25.6.0 arm64 arm (Apple M4). What steps can reproduce the bug? Save this as repro.cjs and run bun repro.cjs : This reproduction has no dependencies and uses no worker threads. What is the expected behavior? Print 2 , as Node.js 24.9.0 does. What do you see instead? The final vm.runInContext throws: Additional information This blocks Vitest 5.0.0 with pool”

GITHUBSep 11

“What version of Bun is running? 1.3.11+af24e281e What platform is your computer? Windows 11 What steps can reproduce the bug? Hi! Stumbling upon some issues regarding global bin paths. Originally I've installed bun using pnpm and additionally had only BUN INSTALL path set to L:\Software\bun . 1. Running bun i g prettier results in the warning below. It has two issues: prettier.exe is not actually created by that path (folder is empty), though warning seem to suggest it was created and I just nee”

GITHUBApr 2

“What version of Bun is running? 1.3.6+d530ed993 What platform is your computer? Darwin 24.6.0 arm64 arm What steps can reproduce the bug? Connect to a Postgres DB (such as Neon) that requires SNI without using a connection URL. For example: But the same config provided as a URL works: And it also works if serverName is specified explicitly, but it feels surprising (and undocumented) that I have to do this: What is the expected behavior? SNI should be used whenever a TLS connection is made. What”

GITHUBJan 22

“What is the problem this feature would solve? While using Bun's WebSocket primites, I often have to write small utility functions like: Essentially the WebSocket equivalent of Response.json() . What is the feature you are proposing to solve the problem? While functions that take the socket as an argument work fine , I would like to be able to extend the default ServerWebSocket object and add custom methods to it. While Bun's WebSocket primitives are fantastic, being able to easily extend it woul”

GITHUBNov 2025

“What version of Bun is running? Bun v1.1.42 (Linux x64) What platform is your computer? linux WSL on windows 11 What steps can reproduce the bug? Im using an astro 5.1.1 project, and using DevCycle as a feature flag server. everything works well until 10 or more minutes when bun closes the connection unexpectly and gives me this error: Then my astro server shuts down. contacted DevCyle support and they told me this a known bug of bun. What can I do? What is the expected behavior? The astro serve”

GITHUBJan 2025

“What version of Bun is running? 1.1.20+ae1948925 What platform is your computer? x64 What steps can reproduce the bug? set bunfig.toml then run bun pm ls g What is the expected behavior? list global packages What do you see instead? Additional information similar issues https://github.com/oven sh/bun/issues/5636 https://github.com/oven sh/bun/issues/4553”

GITHUBJul 2024

“What version of Bun is running? 1.1.17+bb66bba1b What platform is your computer? windows What steps can reproduce the bug? bun create next app What is the expected behavior? No mistakes What do you see instead? bun create next app √ What is your project named? ... my app √ Would you like to use TypeScript? ... No / Yes √ Would you like to use ESLint? ... No / Yes √ Would you like to use Tailwind CSS? ... No / Yes √ Would you like to use src/ directory? ... No / Yes √ Would you like to use App Ro”

GITHUBJun 2024

“What version of Bun is running? 1.1.15 canary.1+3ff29955a What platform is your computer? Microsoft Windows NT 10.0.22631.0 x64 What steps can reproduce the bug? What is the expected behavior? What do you see instead? Additional information No response”

GITHUBJun 2024

“What version of Bun is running? 1.0.4+745b6b94ee56cad24d475799690cc9a89957d15b What platform is your computer? WSL (ubuntu) What steps can reproduce the bug? // Server side // Client side What is the expected behavior? It's possible to create and use the proxy object as if it was a ServerWebSocket What do you see instead? Additional information This might be a niche case so priority might be low. Still I wanted to report it so it's documented.”

GITHUBNov 2023

SOLUTION LANDSCAPE

Brought to you byTop Sectors

A Player feature.See how many ways this pain can be solved, who's already building, and where the gaps are.

Related panes

/ same corner of the problem