Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: update data type for ws message event handler (#3641)
Browse files Browse the repository at this point in the history
The data type was wrong so use the version from the `ws` module
  • Loading branch information
achingbrain authored Apr 27, 2021
1 parent c79d3d6 commit 4a14d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ipfs-grpc-server/src/utils/web-socket-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { camelCase } = require('change-case')
const { Multiaddr } = require('multiaddr')

/**
* @param {Buffer} buf - e.g. `Buffer.from('foo-bar: baz\r\n')`
* @param {import('ws').Data} buf - e.g. `Buffer.from('foo-bar: baz\r\n')`
* @returns {Record<string, any>} - e.g. `{ foorBar: 'baz' }`
**/
const fromHeaders = (buf) => {
Expand Down

0 comments on commit 4a14d20

Please sign in to comment.