We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b616e72 commit f7fc383Copy full SHA for f7fc383
src/connection.js
@@ -1,4 +1,5 @@
1
import d from 'debug';
2
+import values from 'lodash/values';
3
import WebSocketPlus, {
4
OPEN,
5
DISCONNECT,
@@ -59,7 +60,7 @@ export default class Connection extends WebSocketPlus {
59
60
if (waitingForRespond) {
61
if (isIdempotentCommand(command)) {
62
buffer = command.toArrayBuffer();
- const duplicatedCommand = Object.values(this._commands).find(
63
+ const duplicatedCommand = values(this._commands).find(
64
({ buffer: targetBuffer, command: targetCommand }) =>
65
targetCommand.cmd === command.cmd &&
66
targetCommand.op === command.op &&
0 commit comments