Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

websocket #10832

Open
aguadeowo opened this issue May 4, 2024 · 0 comments · May be fixed by #11102
Open

websocket #10832

aguadeowo opened this issue May 4, 2024 · 0 comments · May be fixed by #11102
Labels
bug Something isn't working crash An issue that could cause a crash

Comments

@aguadeowo
Copy link

How can we reproduce the crash?

i just closed and open again my app with bun test.js --watching

const WebSocket = require('ws');
const ws = new WebSocket('wss://stream.binance.com:9443/ws');
const symbols = ['btcusdt','ethusdt'];

ws.on('open', function open() {
console.log('Conexión establecida con Binance.');
for (const symbol of symbols) {
ws.send(JSON.stringify({
"method": "SUBSCRIBE",
"params": [
${symbol}@ticker
],
"id": 1
}));
}
});

ws.on('message', function incoming(data) {
const message = JSON.parse(data);
if (message.a) {
console.log(Precio de ${message.s}: ${message.a});
}
});

ws.on('error', function error(err) {
console.error('Error en la conexión:', err);
});

ws.on('close', function close() {
console.log('Conexión cerrada.');
});

JavaScript/TypeScript code that reproduces the crash?

No response

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.6 (e58d67b) on windows x86_64 [AutoCommand]

Segmentation fault at address 0xFFFFFFFFFFFFFFFF

@aguadeowo aguadeowo added bug Something isn't working crash An issue that could cause a crash labels May 4, 2024
@Jarred-Sumner Jarred-Sumner linked a pull request May 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant