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: d90736a4980464b8847929de763657b52abd2c08
  • Loading branch information
huntie authored and facebook-github-bot committed Aug 4, 2023
1 parent 3901688 commit f2316ed
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 f2316ed

Please sign in to comment.