@sniipwebmaster/realtime-message-client-grpcweb 23.5.488 → 24.3.516

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.
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.4.2
10
+ // protoc v3.12.4
11
+ // source: service.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -27,7 +31,7 @@ proto.realtimemessageapi = require('./service_pb.js');
27
31
  /**
28
32
  * @param {string} hostname
29
33
  * @param {?Object} credentials
30
- * @param {?Object} options
34
+ * @param {?grpc.web.ClientOptions} options
31
35
  * @constructor
32
36
  * @struct
33
37
  * @final
@@ -35,7 +39,7 @@ proto.realtimemessageapi = require('./service_pb.js');
35
39
  proto.realtimemessageapi.RealTimeMessageServiceClient =
36
40
  function(hostname, credentials, options) {
37
41
  if (!options) options = {};
38
- options['format'] = 'text';
42
+ options.format = 'text';
39
43
 
40
44
  /**
41
45
  * @private @const {!grpc.web.GrpcWebClientBase} The client
@@ -45,7 +49,7 @@ proto.realtimemessageapi.RealTimeMessageServiceClient =
45
49
  /**
46
50
  * @private @const {string} The hostname
47
51
  */
48
- this.hostname_ = hostname;
52
+ this.hostname_ = hostname.replace(/\/+$/, '');
49
53
 
50
54
  };
51
55
 
@@ -53,7 +57,7 @@ proto.realtimemessageapi.RealTimeMessageServiceClient =
53
57
  /**
54
58
  * @param {string} hostname
55
59
  * @param {?Object} credentials
56
- * @param {?Object} options
60
+ * @param {?grpc.web.ClientOptions} options
57
61
  * @constructor
58
62
  * @struct
59
63
  * @final
@@ -61,7 +65,7 @@ proto.realtimemessageapi.RealTimeMessageServiceClient =
61
65
  proto.realtimemessageapi.RealTimeMessageServicePromiseClient =
62
66
  function(hostname, credentials, options) {
63
67
  if (!options) options = {};
64
- options['format'] = 'text';
68
+ options.format = 'text';
65
69
 
66
70
  /**
67
71
  * @private @const {!grpc.web.GrpcWebClientBase} The client
@@ -71,7 +75,7 @@ proto.realtimemessageapi.RealTimeMessageServicePromiseClient =
71
75
  /**
72
76
  * @private @const {string} The hostname
73
77
  */
74
- this.hostname_ = hostname;
78
+ this.hostname_ = hostname.replace(/\/+$/, '');
75
79
 
76
80
  };
77
81
 
@@ -98,31 +102,12 @@ const methodDescriptor_RealTimeMessageService_Health = new grpc.web.MethodDescri
98
102
  );
99
103
 
100
104
 
101
- /**
102
- * @const
103
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
104
- * !proto.google.protobuf.Empty,
105
- * !proto.realtimemessageapi.ResponseCode>}
106
- */
107
- const methodInfo_RealTimeMessageService_Health = new grpc.web.AbstractClientBase.MethodInfo(
108
- proto.realtimemessageapi.ResponseCode,
109
- /**
110
- * @param {!proto.google.protobuf.Empty} request
111
- * @return {!Uint8Array}
112
- */
113
- function(request) {
114
- return request.serializeBinary();
115
- },
116
- proto.realtimemessageapi.ResponseCode.deserializeBinary
117
- );
118
-
119
-
120
105
  /**
121
106
  * @param {!proto.google.protobuf.Empty} request The
122
107
  * request proto
123
108
  * @param {?Object<string, string>} metadata User defined
124
109
  * call metadata
125
- * @param {function(?grpc.web.Error, ?proto.realtimemessageapi.ResponseCode)}
110
+ * @param {function(?grpc.web.RpcError, ?proto.realtimemessageapi.ResponseCode)}
126
111
  * callback The callback function(error, response)
127
112
  * @return {!grpc.web.ClientReadableStream<!proto.realtimemessageapi.ResponseCode>|undefined}
128
113
  * The XHR Node Readable Stream
@@ -141,7 +126,7 @@ proto.realtimemessageapi.RealTimeMessageServiceClient.prototype.health =
141
126
  /**
142
127
  * @param {!proto.google.protobuf.Empty} request The
143
128
  * request proto
144
- * @param {?Object<string, string>} metadata User defined
129
+ * @param {?Object<string, string>=} metadata User defined
145
130
  * call metadata
146
131
  * @return {!Promise<!proto.realtimemessageapi.ResponseCode>}
147
132
  * Promise that resolves to the response
@@ -178,28 +163,9 @@ const methodDescriptor_RealTimeMessageService_EventsSubscription = new grpc.web.
178
163
  );
179
164
 
180
165
 
181
- /**
182
- * @const
183
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
184
- * !proto.realtimemessageapi.EmptyRequest,
185
- * !proto.realtimemessageapi.Event>}
186
- */
187
- const methodInfo_RealTimeMessageService_EventsSubscription = new grpc.web.AbstractClientBase.MethodInfo(
188
- proto.realtimemessageapi.Event,
189
- /**
190
- * @param {!proto.realtimemessageapi.EmptyRequest} request
191
- * @return {!Uint8Array}
192
- */
193
- function(request) {
194
- return request.serializeBinary();
195
- },
196
- proto.realtimemessageapi.Event.deserializeBinary
197
- );
198
-
199
-
200
166
  /**
201
167
  * @param {!proto.realtimemessageapi.EmptyRequest} request The request proto
202
- * @param {?Object<string, string>} metadata User defined
168
+ * @param {?Object<string, string>=} metadata User defined
203
169
  * call metadata
204
170
  * @return {!grpc.web.ClientReadableStream<!proto.realtimemessageapi.Event>}
205
171
  * The XHR Node Readable Stream
@@ -216,7 +182,7 @@ proto.realtimemessageapi.RealTimeMessageServiceClient.prototype.eventsSubscripti
216
182
 
217
183
  /**
218
184
  * @param {!proto.realtimemessageapi.EmptyRequest} request The request proto
219
- * @param {?Object<string, string>} metadata User defined
185
+ * @param {?Object<string, string>=} metadata User defined
220
186
  * call metadata
221
187
  * @return {!grpc.web.ClientReadableStream<!proto.realtimemessageapi.Event>}
222
188
  * The XHR Node Readable Stream
@@ -253,31 +219,12 @@ const methodDescriptor_RealTimeMessageService_LocalHealth = new grpc.web.MethodD
253
219
  );
254
220
 
255
221
 
256
- /**
257
- * @const
258
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
259
- * !proto.google.protobuf.Empty,
260
- * !proto.realtimemessageapi.ResponseCode>}
261
- */
262
- const methodInfo_RealTimeMessageService_LocalHealth = new grpc.web.AbstractClientBase.MethodInfo(
263
- proto.realtimemessageapi.ResponseCode,
264
- /**
265
- * @param {!proto.google.protobuf.Empty} request
266
- * @return {!Uint8Array}
267
- */
268
- function(request) {
269
- return request.serializeBinary();
270
- },
271
- proto.realtimemessageapi.ResponseCode.deserializeBinary
272
- );
273
-
274
-
275
222
  /**
276
223
  * @param {!proto.google.protobuf.Empty} request The
277
224
  * request proto
278
225
  * @param {?Object<string, string>} metadata User defined
279
226
  * call metadata
280
- * @param {function(?grpc.web.Error, ?proto.realtimemessageapi.ResponseCode)}
227
+ * @param {function(?grpc.web.RpcError, ?proto.realtimemessageapi.ResponseCode)}
281
228
  * callback The callback function(error, response)
282
229
  * @return {!grpc.web.ClientReadableStream<!proto.realtimemessageapi.ResponseCode>|undefined}
283
230
  * The XHR Node Readable Stream
@@ -296,7 +243,7 @@ proto.realtimemessageapi.RealTimeMessageServiceClient.prototype.localHealth =
296
243
  /**
297
244
  * @param {!proto.google.protobuf.Empty} request The
298
245
  * request proto
299
- * @param {?Object<string, string>} metadata User defined
246
+ * @param {?Object<string, string>=} metadata User defined
300
247
  * call metadata
301
248
  * @return {!Promise<!proto.realtimemessageapi.ResponseCode>}
302
249
  * Promise that resolves to the response
@@ -333,31 +280,12 @@ const methodDescriptor_RealTimeMessageService_GetBanners = new grpc.web.MethodDe
333
280
  );
334
281
 
335
282
 
336
- /**
337
- * @const
338
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
339
- * !proto.realtimemessageapi.GetBannersRequest,
340
- * !proto.realtimemessageapi.BannersResponse>}
341
- */
342
- const methodInfo_RealTimeMessageService_GetBanners = new grpc.web.AbstractClientBase.MethodInfo(
343
- proto.realtimemessageapi.BannersResponse,
344
- /**
345
- * @param {!proto.realtimemessageapi.GetBannersRequest} request
346
- * @return {!Uint8Array}
347
- */
348
- function(request) {
349
- return request.serializeBinary();
350
- },
351
- proto.realtimemessageapi.BannersResponse.deserializeBinary
352
- );
353
-
354
-
355
283
  /**
356
284
  * @param {!proto.realtimemessageapi.GetBannersRequest} request The
357
285
  * request proto
358
286
  * @param {?Object<string, string>} metadata User defined
359
287
  * call metadata
360
- * @param {function(?grpc.web.Error, ?proto.realtimemessageapi.BannersResponse)}
288
+ * @param {function(?grpc.web.RpcError, ?proto.realtimemessageapi.BannersResponse)}
361
289
  * callback The callback function(error, response)
362
290
  * @return {!grpc.web.ClientReadableStream<!proto.realtimemessageapi.BannersResponse>|undefined}
363
291
  * The XHR Node Readable Stream
@@ -376,7 +304,7 @@ proto.realtimemessageapi.RealTimeMessageServiceClient.prototype.getBanners =
376
304
  /**
377
305
  * @param {!proto.realtimemessageapi.GetBannersRequest} request The
378
306
  * request proto
379
- * @param {?Object<string, string>} metadata User defined
307
+ * @param {?Object<string, string>=} metadata User defined
380
308
  * call metadata
381
309
  * @return {!Promise<!proto.realtimemessageapi.BannersResponse>}
382
310
  * Promise that resolves to the response