Skip to content

Commit

Permalink
Fixed issue with trace data coming through as tuple (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgpax authored Sep 25, 2023
1 parent 81f6e01 commit f1d6658
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/web/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function WebSocketClient(options: WebSocketClientOptions) {
log.info('client connected');
retryDelay = DEFAULT_RETRY_DELAY;

for (const trace of Object.entries(initialTraces)) {
for (const trace of Object.values(initialTraces)) {
ws.send(JSON.stringify(trace));
}
};
Expand Down Expand Up @@ -60,12 +60,6 @@ export function WebSocketClient(options: WebSocketClientOptions) {

return {
send: (data: Event) => {
// if (options.debug) {
// if (data.url !== socket.replace('ws', 'http')) {
// log.debug('sending', data);
// }
// }

try {
if (ws.readyState === ws.OPEN) {
ws.send(JSON.stringify(data));
Expand Down

0 comments on commit f1d6658

Please sign in to comment.