Skip to content

Buffered events #4601

Answered by darrachequesne
elmcapp asked this question in Q&A
Jan 18, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi! You can use the sendBuffer array:

socket.emit("hello");

console.log(socket.sendBuffer); // prints "[ { type: 2, data: [ 'hello' ], options: { compress: true } } ]"

Source: https://github.com/socketio/socket.io-client/blob/a1c528b089773d7810a03befaeb982f7e01c3e11/lib/socket.ts#L174

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@elmcremotebridge
Comment options

@elmcremotebridge
Comment options

Answer selected by darrachequesne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants