On click, we get the current value for message (we set this on state as this.state.message whenever the input changes) and then call to this.websocketClient.send(). Remember that the send() function we’re calling here is the same one we wired up and assigned to the connection object back in /websockets/client.js. Conditionally, assuming that an actual message…
Продолжить читать...