@dainprotocol/tunnel 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -275,7 +275,9 @@ class DainTunnel extends events_1.EventEmitter {
275
275
  // Process SSE stream
276
276
  let buffer = '';
277
277
  res.on('data', (chunk) => {
278
- buffer += chunk.toString();
278
+ const chunkStr = chunk.toString();
279
+ console.log(`[Tunnel Client] SSE chunk received (${chunkStr.length} bytes):`, chunkStr.substring(0, 200));
280
+ buffer += chunkStr;
279
281
  // Process complete SSE messages
280
282
  while (buffer.includes('\n\n')) {
281
283
  const messageEndIndex = buffer.indexOf('\n\n');
@@ -298,6 +300,7 @@ class DainTunnel extends events_1.EventEmitter {
298
300
  data = data.substring(0, data.length - 1);
299
301
  }
300
302
  // Forward to server
303
+ console.log(`[Tunnel Client] Forwarding SSE event: ${event}, data length: ${data.length}`);
301
304
  if (this.ws && this.ws.readyState === ws_1.default.OPEN) {
302
305
  this.ws.send(JSON.stringify({
303
306
  type: 'sse',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dainprotocol/tunnel",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "private": false,