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 7e7062d commit 97222edCopy full SHA for 97222ed
lib/parse_websocket.js
@@ -19,7 +19,7 @@ function parseWebSocketRequest (socket, params) {
19
params.peer_id = common.binaryToHex(params.peer_id)
20
21
if (params.answer) {
22
- if (typeof params.to_peer_id !== 'string' || params.to_peer_id.length !== 20)) {
+ if (typeof params.to_peer_id !== 'string' || params.to_peer_id.length !== 20) {
23
throw new Error('invalid `to_peer_id` (required with `answer`)')
24
}
25
params.to_peer_id = common.binaryToHex(params.to_peer_id)
0 commit comments