File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,36 @@ Ext.ux.data.proxy.WebSocket is an easy-to-use implementation of the ExtJS/Sencha
5
5
## Requirements
6
6
* [`Ext.ux.WebSocket`](https://github.com/wilk/ExtJS-WebSocket)
7
7
8
+ ## Install via Bower
9
+ First of all, install [**Bower**](http://bower.io/).
10
+
11
+ Then install `Ext.ux.data.proxy.WebSocket`:
12
+
13
+ ```bash
14
+ $ bower install ext.ux.data.proxy.websocket
15
+ ```
16
+
17
+ Now, you got the extension at the following path: *YOUR_PROJECT_PATH/bower_components/ext.ux.data.proxy.websocket/*
18
+
19
+ It contains **WebSocket.js** and a minified version **WebSocket.min.js**.
20
+
21
+ Let's setup the **Ext.Loader** to require the right file:
22
+
23
+ ```javascript
24
+ Ext.Loader.setConfig ({
25
+ enabled: true ,
26
+ paths: {
27
+ 'Ext.ux.data.proxy.WebSocket': 'bower_components/ext.ux.data.proxy.websocket/WebSocket.js' ,
28
+ // or the minified one: 'Ext.ux.data.proxy.WebSocket': 'bower_components/ext.ux.data.proxy.websocket/WebSocket.min.js' ,
29
+ // Require the Ext.ux.WebSocket dependency
30
+ 'Ext.ux.WebSocket': 'bower_components/ext.ux.websocket/WebSocket.js'
31
+ // or the minified one: 'Ext.ux.WebSocket': 'bower_components/ext.ux.websocket/WebSocket.min.js'
32
+ }
33
+ });
34
+
35
+ Ext.require (['Ext.ux.data.proxy.WebSocket']);
36
+ ```
37
+
8
38
## Usage
9
39
Load `Ext.ux.data.proxy.WebSocket` via `Ext.require`:
10
40
You can’t perform that action at this time.
0 commit comments