Permalink
Browse files

doc fixes

  • Loading branch information...
goeddea committed Jun 29, 2017
1 parent c9789ac commit b15d30022bc827fcb06025ad237a4671bfd1e4de
Showing with 8 additions and 1 deletion.
  1. +7 −0 README.md
  2. +1 −1 doc/programming.md
View
@@ -36,6 +36,13 @@ The following example implements all four roles that **Autobahn**|JS offers
**The code runs unaltered in the browser or Node.js!**
```javascript
try {
// for Node.js
var autobahn = require('autobahn');
} catch (e) {
// for browsers (where AutobahnJS is available globally)
}
var autobahn = require('autobahn');
var connection = new autobahn.Connection({url: 'ws://127.0.0.1:9000/', realm: 'realm1'});
View
@@ -35,7 +35,7 @@ Hence, to create a WAMP application, you
Including Autobahn
==================
We need to include the **Autobahn|JS** library in our JavaScript. There are instructions in [Getting Started](/getting-started.md) for how to do this in the browser and in Node.js. This also links to available WAMP routers. In this documentation use of [Crossbar.io](http://crossbar.io) is assumed, but examples should work with other routers as well.
We need to include the **Autobahn|JS** library in our JavaScript. There are instructions in [Getting Started](getting-started.md) for how to do this in the browser and in Node.js. This also links to available WAMP routers. In this documentation use of [Crossbar.io](http://crossbar.io) is assumed, but examples should work with other routers as well.
Establishing a WAMP connection
==============================

0 comments on commit b15d300

Please sign in to comment.