Open sapter opened 1 year ago
Related to #3613
I'm also really looking forward to using the ws
support. Specifically my use case is utilizing mqtt.
Same here. Use case prisma pulse https://www.prisma.io/docs/data-platform/pulse/what-is-pulse
We would like for Prisma Pulse to support Bun. Is there a way we can help get this prioritised?
I think this is resolved with version 1.1 :D
Just got the opportunity to try this out today and unfortunately it doesn't seem like mqtt.js
is working.
812 | class Receiver {
813 | constructor() {
814 | throw new Error("Not supported yet in Bun");
815 | }
816 | }
817 | var createWebSocketStream = (ws) => {
error: Not supported yet in Bun
at ws:817:57
at streamBuilder (/Users/robert/Desktop/dev/event-rewrite/node_modules/mqtt/build/lib/connect/ws.js:113:29)
at wrapper (/Users/robert/Desktop/dev/event-rewrite/node_modules/mqtt/build/lib/connect/index.js:130:16)
at connect (/Users/robert/Desktop/dev/event-rewrite/node_modules/mqtt/build/lib/client.js:215:23)
at new MqttClient (/Users/robert/Desktop/dev/event-rewrite/node_modules/mqtt/build/lib/client.js:191:13)
at connect (/Users/robert/Desktop/dev/event-rewrite/node_modules/mqtt/build/lib/connect/index.js:132:20)
at makeMqttClient (/Users/robert/Desktop/dev/event-rewrite/apps/common/dist/connection-utils.js:11:24)
at /Users/robert/Desktop/dev/event-rewrite/apps/batcher/src/utils/connections.ts:5:25
What version of Bun is running?
0.8.1+16b4bf341acc0f4804f0b6bdf5298c180cd00366
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
The
createWebSocketStream
method from thews
package breaks. Users get aNot supported yet in Bun
error when trying to use it.What is the expected behavior?
The
createWebSocketStream
worksWhat do you see instead?
Not supported yet in Bun
errorAdditional information
Looks like Bun overwrites the
ws
package. But not all methods in that package have been implemented leaving many users unable to use the package.