@typerighter/rpc-client 0.57.1 → 0.57.3

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.
@@ -32,6 +32,7 @@ export class JsonRpcClient {
32
32
  static connectTcp(host, port) {
33
33
  return new Promise((resolve, reject) => {
34
34
  const socket = createConnection({ host, port }, () => {
35
+ socket.setNoDelay(true); // disable Nagle: small JSON-RPC messages need low latency, not coalescing
35
36
  resolve(new JsonRpcClient(socket, socket));
36
37
  });
37
38
  socket.on('error', reject);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@typerighter/rpc-client",
4
- "version": "0.57.1",
4
+ "version": "0.57.3",
5
5
  "description": "JSON-RPC client for Typedown over TCP/stdio.",
6
6
  "repository": {
7
7
  "type": "git",