You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PACKAGE-COMPARISON.md
+2-19Lines changed: 2 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,22 +28,5 @@ Supported Electron Versions | All | >= 3
28
28
Supported Platforms | Linux, Windows, MacOS | All
29
29
Supported Architectures | x86, x86-64, ARM7+ | All
30
30
31
-
In addition, all channel arguments defined in [this header file](https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/grpc_types.h) are handled by the `grpc` library. Of those, the following are handled by the `@grpc/grpc-js` library:
32
-
33
-
-`grpc.ssl_target_name_override`
34
-
-`grpc.primary_user_agent`
35
-
-`grpc.secondary_user_agent`
36
-
-`grpc.default_authority`
37
-
-`grpc.keepalive_time_ms`
38
-
-`grpc.keepalive_timeout_ms`
39
-
-`grpc.keepalive_permit_without_calls`
40
-
-`grpc.service_config`
41
-
-`grpc.max_concurrent_streams`
42
-
-`grpc.initial_reconnect_backoff_ms`
43
-
-`grpc.max_reconnect_backoff_ms`
44
-
-`grpc.use_local_subchannel_pool`
45
-
-`grpc.max_send_message_length`
46
-
-`grpc.max_receive_message_length`
47
-
-`grpc.enable_http_proxy`
48
-
-`channelOverride`
49
-
-`channelFactoryOverride`
31
+
In addition, all channel arguments defined in [this header file](https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/grpc_types.h) are handled by the `grpc` library.
32
+
Of those, a subset are handled by the `@grpc/grpc-js` library. See [the README](https://github.com/grpc/grpc-node/blob/master/packages/grpc-js/README.md#supported-channel-options) for `@grpc/grpc-js` for the list of supported channel options.
Copy file name to clipboardExpand all lines: packages/grpc-js/README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,28 @@ This library does not directly handle `.proto` files. To use `.proto` files with
36
36
- If you are currently loading `.proto` files using `grpc.load`, that function is not available in this library. You should instead load your `.proto` files using `@grpc/proto-loader` and load the resulting package definition objects into `@grpc/grpc-js` using `grpc.loadPackageDefinition`.
37
37
- If you are currently loading packages generated by `grpc-tools`, you should instead generate your files using the `generate_package_definition` option in `grpc-tools`, then load the object exported by the generated file into `@grpc/grpc-js` using `grpc.loadPackageDefinition`.
38
38
- If you have a server and you are using `Server#bind` to bind ports, you will need to use `Server#bindAsync` instead.
39
+
- If you are using any channel options supported in `grpc` but not supported in `@grpc/grpc-js`, you may need to adjust your code to handle the different behavior. Refer to [the list of supported options](#supported-channel-options) below.
40
+
- Refer to the [detailed package comparison](https://github.com/grpc/grpc-node/blob/master/PACKAGE-COMPARISON.md) for more details on the differences between `grpc` and `@grpc/grpc-js`.
41
+
42
+
## Supported Channel Options
43
+
Many channel arguments supported in `grpc` are not supported in `@grpc/grpc-js`. The channel arguments supported by `@grpc/grpc-js` are:
0 commit comments