9. Examples

Here you can find some information about demo code included in MyRPC source distribution.

9.2. Chat

Source code: https://github.com/bandipapa/MyRPC/tree/master/examples/chat.

This is an example demonstrating how you can use MyRPC to create a simple real-time web application in pure JavaScript (browser-side and Node.js server) based on asynchronous MyRPC processor API.

To compile MyRPC IDL files:

cd examples/chat

To start the demo:

node chatserver.js 8080

where 8080 is a portnumber, feel free to use any other.

Then point your browser at http://yourip:8080, and start chatting.