devtools-protocol 0.0.1446921 → 0.0.1447524

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.
@@ -16330,6 +16330,63 @@
16330
16330
  }
16331
16331
  ]
16332
16332
  },
16333
+ {
16334
+ "name": "directTCPSocketChunkSent",
16335
+ "description": "Fired when data is sent to tcp direct socket stream.",
16336
+ "experimental": true,
16337
+ "parameters": [
16338
+ {
16339
+ "name": "identifier",
16340
+ "$ref": "RequestId"
16341
+ },
16342
+ {
16343
+ "name": "data",
16344
+ "type": "string"
16345
+ },
16346
+ {
16347
+ "name": "timestamp",
16348
+ "$ref": "MonotonicTime"
16349
+ }
16350
+ ]
16351
+ },
16352
+ {
16353
+ "name": "directTCPSocketChunkReceived",
16354
+ "description": "Fired when data is received from tcp direct socket stream.",
16355
+ "experimental": true,
16356
+ "parameters": [
16357
+ {
16358
+ "name": "identifier",
16359
+ "$ref": "RequestId"
16360
+ },
16361
+ {
16362
+ "name": "data",
16363
+ "type": "string"
16364
+ },
16365
+ {
16366
+ "name": "timestamp",
16367
+ "$ref": "MonotonicTime"
16368
+ }
16369
+ ]
16370
+ },
16371
+ {
16372
+ "name": "directTCPSocketChunkError",
16373
+ "description": "Fired when there is an error\nwhen writing to tcp direct socket stream.\nFor example, if user writes illegal type like string\ninstead of ArrayBuffer or ArrayBufferView.\nThere's no reporting for reading, because\nwe cannot know errors on the other side.",
16374
+ "experimental": true,
16375
+ "parameters": [
16376
+ {
16377
+ "name": "identifier",
16378
+ "$ref": "RequestId"
16379
+ },
16380
+ {
16381
+ "name": "errorMessage",
16382
+ "type": "string"
16383
+ },
16384
+ {
16385
+ "name": "timestamp",
16386
+ "$ref": "MonotonicTime"
16387
+ }
16388
+ ]
16389
+ },
16333
16390
  {
16334
16391
  "name": "requestWillBeSentExtraInfo",
16335
16392
  "description": "Fired when additional information about a requestWillBeSent event is available from the\nnetwork stack. Not every requestWillBeSent event will have an additional\nrequestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent\nor requestWillBeSentExtraInfo will be fired first for the same request.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1446921",
3
+ "version": "0.0.1447524",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -7512,6 +7512,32 @@ domain Network
7512
7512
  RequestId identifier
7513
7513
  MonotonicTime timestamp
7514
7514
 
7515
+ # Fired when data is sent to tcp direct socket stream.
7516
+ experimental event directTCPSocketChunkSent
7517
+ parameters
7518
+ RequestId identifier
7519
+ binary data
7520
+ MonotonicTime timestamp
7521
+
7522
+ # Fired when data is received from tcp direct socket stream.
7523
+ experimental event directTCPSocketChunkReceived
7524
+ parameters
7525
+ RequestId identifier
7526
+ binary data
7527
+ MonotonicTime timestamp
7528
+
7529
+ # Fired when there is an error
7530
+ # when writing to tcp direct socket stream.
7531
+ # For example, if user writes illegal type like string
7532
+ # instead of ArrayBuffer or ArrayBufferView.
7533
+ # There's no reporting for reading, because
7534
+ # we cannot know errors on the other side.
7535
+ experimental event directTCPSocketChunkError
7536
+ parameters
7537
+ RequestId identifier
7538
+ string errorMessage
7539
+ MonotonicTime timestamp
7540
+
7515
7541
  experimental type PrivateNetworkRequestPolicy extends string
7516
7542
  enum
7517
7543
  Allow
@@ -367,6 +367,23 @@ export namespace ProtocolMapping {
367
367
  * Fired when direct_socket.TCPSocket is closed.
368
368
  */
369
369
  'Network.directTCPSocketClosed': [Protocol.Network.DirectTCPSocketClosedEvent];
370
+ /**
371
+ * Fired when data is sent to tcp direct socket stream.
372
+ */
373
+ 'Network.directTCPSocketChunkSent': [Protocol.Network.DirectTCPSocketChunkSentEvent];
374
+ /**
375
+ * Fired when data is received from tcp direct socket stream.
376
+ */
377
+ 'Network.directTCPSocketChunkReceived': [Protocol.Network.DirectTCPSocketChunkReceivedEvent];
378
+ /**
379
+ * Fired when there is an error
380
+ * when writing to tcp direct socket stream.
381
+ * For example, if user writes illegal type like string
382
+ * instead of ArrayBuffer or ArrayBufferView.
383
+ * There's no reporting for reading, because
384
+ * we cannot know errors on the other side.
385
+ */
386
+ 'Network.directTCPSocketChunkError': [Protocol.Network.DirectTCPSocketChunkErrorEvent];
370
387
  /**
371
388
  * Fired when additional information about a requestWillBeSent event is available from the
372
389
  * network stack. Not every requestWillBeSent event will have an additional
@@ -2731,6 +2731,26 @@ export namespace ProtocolProxyApi {
2731
2731
  */
2732
2732
  on(event: 'directTCPSocketClosed', listener: (params: Protocol.Network.DirectTCPSocketClosedEvent) => void): void;
2733
2733
 
2734
+ /**
2735
+ * Fired when data is sent to tcp direct socket stream.
2736
+ */
2737
+ on(event: 'directTCPSocketChunkSent', listener: (params: Protocol.Network.DirectTCPSocketChunkSentEvent) => void): void;
2738
+
2739
+ /**
2740
+ * Fired when data is received from tcp direct socket stream.
2741
+ */
2742
+ on(event: 'directTCPSocketChunkReceived', listener: (params: Protocol.Network.DirectTCPSocketChunkReceivedEvent) => void): void;
2743
+
2744
+ /**
2745
+ * Fired when there is an error
2746
+ * when writing to tcp direct socket stream.
2747
+ * For example, if user writes illegal type like string
2748
+ * instead of ArrayBuffer or ArrayBufferView.
2749
+ * There's no reporting for reading, because
2750
+ * we cannot know errors on the other side.
2751
+ */
2752
+ on(event: 'directTCPSocketChunkError', listener: (params: Protocol.Network.DirectTCPSocketChunkErrorEvent) => void): void;
2753
+
2734
2754
  /**
2735
2755
  * Fired when additional information about a requestWillBeSent event is available from the
2736
2756
  * network stack. Not every requestWillBeSent event will have an additional
@@ -2919,6 +2919,32 @@ export namespace ProtocolTestsProxyApi {
2919
2919
  offDirectTCPSocketClosed(listener: (event: { params: Protocol.Network.DirectTCPSocketClosedEvent }) => void): void;
2920
2920
  onceDirectTCPSocketClosed(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketClosedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketClosedEvent }>;
2921
2921
 
2922
+ /**
2923
+ * Fired when data is sent to tcp direct socket stream.
2924
+ */
2925
+ onDirectTCPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkSentEvent }) => void): void;
2926
+ offDirectTCPSocketChunkSent(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkSentEvent }) => void): void;
2927
+ onceDirectTCPSocketChunkSent(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketChunkSentEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketChunkSentEvent }>;
2928
+
2929
+ /**
2930
+ * Fired when data is received from tcp direct socket stream.
2931
+ */
2932
+ onDirectTCPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => void): void;
2933
+ offDirectTCPSocketChunkReceived(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => void): void;
2934
+ onceDirectTCPSocketChunkReceived(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketChunkReceivedEvent }>;
2935
+
2936
+ /**
2937
+ * Fired when there is an error
2938
+ * when writing to tcp direct socket stream.
2939
+ * For example, if user writes illegal type like string
2940
+ * instead of ArrayBuffer or ArrayBufferView.
2941
+ * There's no reporting for reading, because
2942
+ * we cannot know errors on the other side.
2943
+ */
2944
+ onDirectTCPSocketChunkError(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => void): void;
2945
+ offDirectTCPSocketChunkError(listener: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => void): void;
2946
+ onceDirectTCPSocketChunkError(eventMatcher?: (event: { params: Protocol.Network.DirectTCPSocketChunkErrorEvent }) => boolean): Promise<{ params: Protocol.Network.DirectTCPSocketChunkErrorEvent }>;
2947
+
2922
2948
  /**
2923
2949
  * Fired when additional information about a requestWillBeSent event is available from the
2924
2950
  * network stack. Not every requestWillBeSent event will have an additional
@@ -12819,6 +12819,38 @@ export namespace Protocol {
12819
12819
  timestamp: MonotonicTime;
12820
12820
  }
12821
12821
 
12822
+ /**
12823
+ * Fired when data is sent to tcp direct socket stream.
12824
+ */
12825
+ export interface DirectTCPSocketChunkSentEvent {
12826
+ identifier: RequestId;
12827
+ data: string;
12828
+ timestamp: MonotonicTime;
12829
+ }
12830
+
12831
+ /**
12832
+ * Fired when data is received from tcp direct socket stream.
12833
+ */
12834
+ export interface DirectTCPSocketChunkReceivedEvent {
12835
+ identifier: RequestId;
12836
+ data: string;
12837
+ timestamp: MonotonicTime;
12838
+ }
12839
+
12840
+ /**
12841
+ * Fired when there is an error
12842
+ * when writing to tcp direct socket stream.
12843
+ * For example, if user writes illegal type like string
12844
+ * instead of ArrayBuffer or ArrayBufferView.
12845
+ * There's no reporting for reading, because
12846
+ * we cannot know errors on the other side.
12847
+ */
12848
+ export interface DirectTCPSocketChunkErrorEvent {
12849
+ identifier: RequestId;
12850
+ errorMessage: string;
12851
+ timestamp: MonotonicTime;
12852
+ }
12853
+
12822
12854
  /**
12823
12855
  * Fired when additional information about a requestWillBeSent event is available from the
12824
12856
  * network stack. Not every requestWillBeSent event will have an additional