Skip to content

Commit

Permalink
Add Flow typedefs for ws, fix usages (facebook#38788)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#38788

Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D48064192

fbshipit-source-id: 0996d62fb0755c4c9ca002646a6886b43184fafb
  • Loading branch information
huntie authored and facebook-github-bot committed Aug 4, 2023
1 parent 3901688 commit 05605d3
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 05605d3

Please sign in to comment.