Skip to content

Commit faa987f

Browse files
authored
fix: websocket path from wss to ws (#316)
1 parent d9d4f49 commit faa987f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source/includes/_websocket.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ npm install centrifuge
3434
```javascript
3535
import { Centrifuge } from 'centrifuge';
3636

37-
const client = new Centrifuge('wss://wss.nobitex.ir/connection/websocket', {});
37+
const client = new Centrifuge('wss://ws.nobitex.ir/connection/websocket', {});
3838
client.on('connected', (ctx) => {
3939
console.log('connected', ctx);
4040
});
@@ -59,7 +59,7 @@ client.connect();
5959

6060
برای اتصال به وب‌سوکت نوبیتکس، از آدرس زیر استفاده کنید:
6161

62-
* **آدرس وب‌سوکت:** `wss://wss.nobitex.ir/connection/websocket`
62+
* **آدرس وب‌سوکت:** `wss://ws.nobitex.ir/connection/websocket`
6363
* **محدودیت نرخ:** حداکثر 100 اتصال همزمان برای هر IP
6464
* **نیاز به ارسال توکن:** ندارد
6565

@@ -129,7 +129,7 @@ curl 'https://apiv2.nobitex.ir/auth/ws/token/' \
129129
<h2 id="websocket-auth">احراز هویت</h2>
130130

131131
```javascript
132-
const centrifuge = new Centrifuge('wss://wss.nobitex.ir/connection/websocket', {
132+
const centrifuge = new Centrifuge('wss://ws.nobitex.ir/connection/websocket', {
133133
token: '<CONNECTION_TOKEN>'
134134
});
135135
```
@@ -163,7 +163,7 @@ async function getToken() {
163163
}
164164

165165
const client = new Centrifuge(
166-
'wss://wss.nobitex.ir/connection/websocket',
166+
'wss://ws.nobitex.ir/connection/websocket',
167167
{
168168
token: '<CONNECTION_TOKEN>',
169169
getToken: getToken

0 commit comments

Comments
 (0)