0.0.20 • Published 5 years ago

rtcmesh-react v0.0.20

Weekly downloads
5
License
GPL-3.0
Repository
github
Last release
5 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

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago