0.0.20 • Published 4 years ago

rtcmesh-react v0.0.20

Weekly downloads
5
License
GPL-3.0
Repository
github
Last release
4 years ago

rtcmesh-react

React component for communicating with the rtcmesh-server

How to use it

In App.js add the component passing the server url and the alert callback. Ex.

alertCallback = (severity, message) => {
	console.log(severity, message);
}

render() {
	return (
	  <div className="App">
		<ServerConnection  REACT_APP_SERVER_URL={process.env.REACT_APP_SERVER_URL} alertCallback={this.alertCallback} />
	  </div>
	);
}

Once connected you can send a message. The callback will be called when the response comes back.

my_callback = (data) => {
	console.log(data)
}

SendRequest = (action, service, resource, parameters, this.my_callback);

Testing

npm install
npm test
0.0.20

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.6

4 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago