Skip to content

Commit

Permalink
Update benchmarks/websocket/websocket-echo.mjs
Browse files Browse the repository at this point in the history
Co-authored-by: Khafra <maitken033380023@gmail.com>
  • Loading branch information
tsctx and KhafraDev committed May 5, 2024
1 parent 2792301 commit 7af0bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/websocket/websocket-echo.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const binary = randomBytes(__BINARY_SIZE__)

server.on('connection', (socket) => {
socket.on('message', (data, _isBinary) => {
socket.send(data)
socket.send(data, { binary: _isBinary })
// socket.close();
})
})
Expand Down

0 comments on commit 7af0bac

Please sign in to comment.