How to use the Call function from bindings
Find comprehensive JavaScript bindings.Call code examples handpicked from public code repositorys.
GitHub: caryx/Test
66 67 68 69 70 71 72 73 74 75
it('should reject anything less than 3 arguments', function() { assert.throws(function() { new grpc.Call(); }, TypeError); assert.throws(function() { new grpc.Call(channel); }, TypeError); assert.throws(function() { new grpc.Call(channel, 'method'); }, TypeError);
1
0
0
+ 33 other calls in file
GitHub: caryx/Test
72 73 74 75 76 77 78 79 80 81
server.forceShutdown(); }); it('should start and end a request without error', function(complete) { var done = multiDone(complete, 2); var status_text = 'xyz'; var call = new grpc.Call(channel, 'dummy_method', Infinity); var client_batch = {}; client_batch[grpc.opType.SEND_INITIAL_METADATA] = {};
1
0
0
+ 11 other calls in file
GitHub: caryx/Test
239 240 241 242 243 244 245 246 247 248 249
propagate_flags = options.propagate_flags; } if (deadline === undefined) { deadline = Infinity; } return new grpc.Call(channel, method, deadline, host, parent, propagate_flags); } /**
1
0
0
+ 4 other calls in file
GitHub: gameduell/kythe
213 214 215 216 217 218 219 220 221 222
/* jshint validthis: true */ if (deadline === undefined) { deadline = Infinity; } var emitter = new EventEmitter(); var call = new grpc.Call(this.channel, method, deadline); if (metadata === null || metadata === undefined) { metadata = {}; } emitter.cancel = function cancel() {
0
1
0
+ 11 other calls in file
113 114 115 116 117 118 119 120 121 122
}); }); }); describe('deadline', function() { it('should time out immediately with negative deadline', function(done) { var call = new grpc.Call(channel, 'method', -Infinity); var batch = {}; batch[grpc.opType.RECV_STATUS_ON_CLIENT] = true; call.startBatch(batch, function(err, response) { assert.strictEqual(response.status.code, grpc.status.DEADLINE_EXCEEDED);
0
0
0
+ 124 other calls in file
252 253 254 255 256 257 258 259 260 261
credentials = options.credentials; } if (deadline === undefined) { deadline = Infinity; } var call = new grpc.Call(channel, method, deadline, host, parent, propagate_flags); if (credentials) { call.setCredentials(credentials); }
0
0
0
+ 4 other calls in file
bindings.createKey is the most popular function in bindings (8616 examples)