This commit is contained in:
2026-03-06 08:19:15 +07:00
parent 1b86a9252d
commit aa7cdbd36f
31 changed files with 89 additions and 89 deletions

View File

@@ -177,7 +177,7 @@ end
```javascript
// src/chat_ui.js
const NATSBridge = require('./src/natbridge.js');
const NATSBridge = require('./src/natsbridge.js');
class ChatUI {
constructor() {
@@ -333,7 +333,7 @@ end
```javascript
// src/chat_handler.js
const NATSBridge = require('./src/natbridge.js');
const NATSBridge = require('./src/natsbridge.js');
const nats = require('nats');
class ChatHandler {
@@ -393,7 +393,7 @@ module.exports = ChatHandler;
# src/chat_handler.py
import asyncio
from typing import Optional
from natbridge import smartreceive, fetch_with_backoff
from natsbridge import smartreceive, fetch_with_backoff
class ChatHandler:
def __init__(self, nats_connection):
@@ -526,7 +526,7 @@ end
```javascript
// src/file_upload_service.js
const NATSBridge = require('./src/natbridge.js');
const NATSBridge = require('./src/natsbridge.js');
const fs = require('fs');
class FileUploadService {
@@ -580,7 +580,7 @@ module.exports = FileUploadService;
```python
# src/file_upload_service.py
from natbridge import smartsend
from natsbridge import smartsend
import os
class FileUploadService:
@@ -659,7 +659,7 @@ end
```javascript
// src/file_download_service.js
const NATSBridge = require('./src/natbridge.js');
const NATSBridge = require('./src/natsbridge.js');
const fs = require('fs');
class FileDownloadService {
@@ -690,7 +690,7 @@ module.exports = FileDownloadService;
```python
# src/file_download_service.py
from natbridge import smartreceive, fetch_with_backoff
from natsbridge import smartreceive, fetch_with_backoff
import os
class FileDownloadService:
@@ -832,7 +832,7 @@ end
```javascript
// src/sensor_data.js
const NATSBridge = require('./src/natbridge.js');
const NATSBridge = require('./src/natsbridge.js');
class SensorReading {
constructor(sensorId, value, unit, metadata = {}) {
@@ -985,7 +985,7 @@ end
```javascript
// src/sensor_sender.js
const NATSBridge = require('./src/natbridge.js');
const NATSBridge = require('./src/natsbridge.js');
const { SensorReading, SensorBatch } = require('./sensor_data.js');
class SensorSender {
@@ -1069,7 +1069,7 @@ module.exports = SensorSender;
```python
# src/sensor_sender.py
from natbridge import smartsend
from natsbridge import smartsend
from sensor_data import SensorReading, SensorBatch
class SensorSender:
@@ -1282,7 +1282,7 @@ end
# Cache file server responses
import asyncio
import threading
from natbridge import fetch_with_backoff
from natsbridge import fetch_with_backoff
file_cache = {}
cache_lock = threading.Lock()