Skip to content

Conversation

prog-supdex
Copy link
Contributor

@prog-supdex prog-supdex commented Jul 28, 2025

What changed

  • Removed JSON.stringify when sending the payload in the data field, now sending the raw object
  • Enhanced the pusher:connection_established and client-broadcast handlers to parse msg.data correctly, whether it’s a string or an object
  • Added checks for ws.readyState === WS_OPEN before every ws.send in pusher:ping event to avoid errors when the socket is closed

Why

Prior payload serialization was causing server errors ("data field must be an array") and complicated client-side parsing. These updates ensure full compatibility with Reverb, AnyCable, and Soketi, allowing reliable collection of latency and throughput metrics without errors.

@prog-supdex prog-supdex force-pushed the fix/correcting-benchmark branch from 93b5047 to f087150 Compare July 28, 2025 06:51
@palkan palkan merged commit 5ed377e into anycable:master Jul 28, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants