You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\* Note that the src attribute may be different depending on how you setup your HTTP server.
23
23
24
-
Once you have embedded the client `asyngular-client.js` into your page, you will gain access to a global `asyngularClient` object.
24
+
Once you have embedded the client `socketcluster-client.js` into your page, you will gain access to a global `socketClusterClient` object.
25
25
You may also use CommonJS `require` or ES6 module imports.
26
26
27
27
### Connect to a server
28
28
29
29
```js
30
-
let socket =asyngularClient.create({
30
+
let socket =socketClusterClient.create({
31
31
hostname:'localhost',
32
32
port:8000
33
33
});
@@ -138,19 +138,19 @@ let options = {
138
138
rejectUnauthorized:false// Only necessary during debug if using a self-signed certificate
139
139
};
140
140
// Initiate the connection to the server
141
-
let socket =asyngularClient.create(options);
141
+
let socket =socketClusterClient.create(options);
142
142
```
143
143
144
-
For more detailed examples of how to use Asyngular, see `test/integration.js`.
145
-
Also, see tests from the `asyngular-server` module.
144
+
For more detailed examples of how to use SocketCluster, see `test/integration.js`.
145
+
Also, see tests from the `socketcluster-server` module.
146
146
147
147
### Connect Options
148
148
149
-
See all available options: https://asyngular.io/docs/api-asyngular-client/
149
+
See all available options: https://socketcluster.io/
150
150
151
151
```js
152
152
let options = {
153
-
path:'/asyngular/',
153
+
path:'/socketcluster/',
154
154
port:8000,
155
155
hostname:'127.0.0.1',
156
156
autoConnect:true,
@@ -177,8 +177,8 @@ let options = {
177
177
178
178
## Running the tests
179
179
180
-
- Clone this repo: `git clone [email protected]:SocketCluster/asyngular-client.git`
181
-
- Navigate to project directory: `cd asyngular-client`
180
+
- Clone this repo: `git clone [email protected]:SocketCluster/socketcluster-client.git`
181
+
- Navigate to project directory: `cd socketcluster-client`
182
182
- Install all dependencies: `npm install`
183
183
- Run the tests: `npm test`
184
184
@@ -187,7 +187,7 @@ let options = {
187
187
For compatibility with an existing SocketCluster server, set the `protocolVersion` to `1` and make sure that the `path` matches your old server path:
188
188
189
189
```js
190
-
let socket =asyngularClient.create({
190
+
let socket =socketClusterClient.create({
191
191
protocolVersion:1,
192
192
path:'/socketcluster/'
193
193
});
@@ -198,7 +198,7 @@ let socket = asyngularClient.create({
198
198
### Install all dependencies
199
199
200
200
```bash
201
-
cdasyngular-client
201
+
cdsocketcluster-client
202
202
203
203
npm install -g gulp gulp-cli browserify uglify-es
204
204
@@ -207,21 +207,21 @@ npm install
207
207
208
208
### Building
209
209
210
-
To build the Asyngular client:
210
+
To build the SocketCluster client:
211
211
212
212
```bash
213
213
npm run build
214
214
```
215
215
216
216
## Change log
217
217
218
-
See the 'releases' section for changes: https://github.com/SocketCluster/asyngular-client/releases
218
+
See the 'releases' section for changes: https://github.com/SocketCluster/socketcluster-client/releases
219
219
220
220
## License
221
221
222
222
(The MIT License)
223
223
224
-
Copyright (c) 2013-2019 Asyngular.io
224
+
Copyright (c) 2013-2019 SocketCluster.io
225
225
226
226
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
0 commit comments