Skip to content

Commit

Permalink
Add Flow typedefs for ws, fix usages
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D48064192

fbshipit-source-id: 0e8d3cbe89ba3f6f46af078c4069fa7a07304ba2
  • Loading branch information
huntie authored and facebook-github-bot committed Aug 4, 2023
1 parent 3901688 commit b1d4152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ server.on('connection', ws => {
console.log('WebSocket integration test server exit');
process.exit(0);
}
ws.send(message + '_response');
ws.send(String(message) + '_response');
});

ws.send('hello');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ server.on('connection', ws => {
ws.on('message', message => {
console.log('Received message:', message);
if (respondWithBinary) {
// $FlowFixMe[incompatible-call]
message = Buffer.from(message);
}
if (message === 'getImage') {
Expand Down

0 comments on commit b1d4152

Please sign in to comment.