amqplib 0.5.2 → 0.5.6

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.
package/lib/defs.js CHANGED
@@ -3077,7 +3077,7 @@ function decodeBasicProperties(buffer) {
3077
3077
  return fields;
3078
3078
  }
3079
3079
 
3080
- var Buffer = require("safe-buffer").Buffer, codec = require("./codec"), ints = require("buffer-more-ints"), encodeTable = codec.encodeTable, decodeFields = codec.decodeFields, SCRATCH = Buffer.alloc(16384), EMPTY_OBJECT = Object.freeze({});
3080
+ var Buffer = require("safe-buffer").Buffer, codec = require("./codec"), ints = require("buffer-more-ints"), encodeTable = codec.encodeTable, decodeFields = codec.decodeFields, SCRATCH = Buffer.alloc(65536), EMPTY_OBJECT = Object.freeze({});
3081
3081
 
3082
3082
  module.exports.constants = {
3083
3083
  FRAME_METHOD: 1,
@@ -3754,6 +3754,8 @@ module.exports.ConnectionStart = 655370;
3754
3754
 
3755
3755
  var methodInfoConnectionStart = module.exports.methodInfoConnectionStart = {
3756
3756
  id: 655370,
3757
+ classId: 10,
3758
+ methodId: 10,
3757
3759
  name: "ConnectionStart",
3758
3760
  args: [ {
3759
3761
  type: "octet",
@@ -3781,6 +3783,8 @@ module.exports.ConnectionStartOk = 655371;
3781
3783
 
3782
3784
  var methodInfoConnectionStartOk = module.exports.methodInfoConnectionStartOk = {
3783
3785
  id: 655371,
3786
+ classId: 10,
3787
+ methodId: 11,
3784
3788
  name: "ConnectionStartOk",
3785
3789
  args: [ {
3786
3790
  type: "table",
@@ -3803,6 +3807,8 @@ module.exports.ConnectionSecure = 655380;
3803
3807
 
3804
3808
  var methodInfoConnectionSecure = module.exports.methodInfoConnectionSecure = {
3805
3809
  id: 655380,
3810
+ classId: 10,
3811
+ methodId: 20,
3806
3812
  name: "ConnectionSecure",
3807
3813
  args: [ {
3808
3814
  type: "longstr",
@@ -3814,6 +3820,8 @@ module.exports.ConnectionSecureOk = 655381;
3814
3820
 
3815
3821
  var methodInfoConnectionSecureOk = module.exports.methodInfoConnectionSecureOk = {
3816
3822
  id: 655381,
3823
+ classId: 10,
3824
+ methodId: 21,
3817
3825
  name: "ConnectionSecureOk",
3818
3826
  args: [ {
3819
3827
  type: "longstr",
@@ -3825,6 +3833,8 @@ module.exports.ConnectionTune = 655390;
3825
3833
 
3826
3834
  var methodInfoConnectionTune = module.exports.methodInfoConnectionTune = {
3827
3835
  id: 655390,
3836
+ classId: 10,
3837
+ methodId: 30,
3828
3838
  name: "ConnectionTune",
3829
3839
  args: [ {
3830
3840
  type: "short",
@@ -3845,6 +3855,8 @@ module.exports.ConnectionTuneOk = 655391;
3845
3855
 
3846
3856
  var methodInfoConnectionTuneOk = module.exports.methodInfoConnectionTuneOk = {
3847
3857
  id: 655391,
3858
+ classId: 10,
3859
+ methodId: 31,
3848
3860
  name: "ConnectionTuneOk",
3849
3861
  args: [ {
3850
3862
  type: "short",
@@ -3865,6 +3877,8 @@ module.exports.ConnectionOpen = 655400;
3865
3877
 
3866
3878
  var methodInfoConnectionOpen = module.exports.methodInfoConnectionOpen = {
3867
3879
  id: 655400,
3880
+ classId: 10,
3881
+ methodId: 40,
3868
3882
  name: "ConnectionOpen",
3869
3883
  args: [ {
3870
3884
  type: "shortstr",
@@ -3885,6 +3899,8 @@ module.exports.ConnectionOpenOk = 655401;
3885
3899
 
3886
3900
  var methodInfoConnectionOpenOk = module.exports.methodInfoConnectionOpenOk = {
3887
3901
  id: 655401,
3902
+ classId: 10,
3903
+ methodId: 41,
3888
3904
  name: "ConnectionOpenOk",
3889
3905
  args: [ {
3890
3906
  type: "shortstr",
@@ -3897,6 +3913,8 @@ module.exports.ConnectionClose = 655410;
3897
3913
 
3898
3914
  var methodInfoConnectionClose = module.exports.methodInfoConnectionClose = {
3899
3915
  id: 655410,
3916
+ classId: 10,
3917
+ methodId: 50,
3900
3918
  name: "ConnectionClose",
3901
3919
  args: [ {
3902
3920
  type: "short",
@@ -3918,6 +3936,8 @@ module.exports.ConnectionCloseOk = 655411;
3918
3936
 
3919
3937
  var methodInfoConnectionCloseOk = module.exports.methodInfoConnectionCloseOk = {
3920
3938
  id: 655411,
3939
+ classId: 10,
3940
+ methodId: 51,
3921
3941
  name: "ConnectionCloseOk",
3922
3942
  args: []
3923
3943
  };
@@ -3926,6 +3946,8 @@ module.exports.ConnectionBlocked = 655420;
3926
3946
 
3927
3947
  var methodInfoConnectionBlocked = module.exports.methodInfoConnectionBlocked = {
3928
3948
  id: 655420,
3949
+ classId: 10,
3950
+ methodId: 60,
3929
3951
  name: "ConnectionBlocked",
3930
3952
  args: [ {
3931
3953
  type: "shortstr",
@@ -3938,6 +3960,8 @@ module.exports.ConnectionUnblocked = 655421;
3938
3960
 
3939
3961
  var methodInfoConnectionUnblocked = module.exports.methodInfoConnectionUnblocked = {
3940
3962
  id: 655421,
3963
+ classId: 10,
3964
+ methodId: 61,
3941
3965
  name: "ConnectionUnblocked",
3942
3966
  args: []
3943
3967
  };
@@ -3946,6 +3970,8 @@ module.exports.ChannelOpen = 1310730;
3946
3970
 
3947
3971
  var methodInfoChannelOpen = module.exports.methodInfoChannelOpen = {
3948
3972
  id: 1310730,
3973
+ classId: 20,
3974
+ methodId: 10,
3949
3975
  name: "ChannelOpen",
3950
3976
  args: [ {
3951
3977
  type: "shortstr",
@@ -3958,6 +3984,8 @@ module.exports.ChannelOpenOk = 1310731;
3958
3984
 
3959
3985
  var methodInfoChannelOpenOk = module.exports.methodInfoChannelOpenOk = {
3960
3986
  id: 1310731,
3987
+ classId: 20,
3988
+ methodId: 11,
3961
3989
  name: "ChannelOpenOk",
3962
3990
  args: [ {
3963
3991
  type: "longstr",
@@ -3970,6 +3998,8 @@ module.exports.ChannelFlow = 1310740;
3970
3998
 
3971
3999
  var methodInfoChannelFlow = module.exports.methodInfoChannelFlow = {
3972
4000
  id: 1310740,
4001
+ classId: 20,
4002
+ methodId: 20,
3973
4003
  name: "ChannelFlow",
3974
4004
  args: [ {
3975
4005
  type: "bit",
@@ -3981,6 +4011,8 @@ module.exports.ChannelFlowOk = 1310741;
3981
4011
 
3982
4012
  var methodInfoChannelFlowOk = module.exports.methodInfoChannelFlowOk = {
3983
4013
  id: 1310741,
4014
+ classId: 20,
4015
+ methodId: 21,
3984
4016
  name: "ChannelFlowOk",
3985
4017
  args: [ {
3986
4018
  type: "bit",
@@ -3992,6 +4024,8 @@ module.exports.ChannelClose = 1310760;
3992
4024
 
3993
4025
  var methodInfoChannelClose = module.exports.methodInfoChannelClose = {
3994
4026
  id: 1310760,
4027
+ classId: 20,
4028
+ methodId: 40,
3995
4029
  name: "ChannelClose",
3996
4030
  args: [ {
3997
4031
  type: "short",
@@ -4013,6 +4047,8 @@ module.exports.ChannelCloseOk = 1310761;
4013
4047
 
4014
4048
  var methodInfoChannelCloseOk = module.exports.methodInfoChannelCloseOk = {
4015
4049
  id: 1310761,
4050
+ classId: 20,
4051
+ methodId: 41,
4016
4052
  name: "ChannelCloseOk",
4017
4053
  args: []
4018
4054
  };
@@ -4021,6 +4057,8 @@ module.exports.AccessRequest = 1966090;
4021
4057
 
4022
4058
  var methodInfoAccessRequest = module.exports.methodInfoAccessRequest = {
4023
4059
  id: 1966090,
4060
+ classId: 30,
4061
+ methodId: 10,
4024
4062
  name: "AccessRequest",
4025
4063
  args: [ {
4026
4064
  type: "shortstr",
@@ -4053,6 +4091,8 @@ module.exports.AccessRequestOk = 1966091;
4053
4091
 
4054
4092
  var methodInfoAccessRequestOk = module.exports.methodInfoAccessRequestOk = {
4055
4093
  id: 1966091,
4094
+ classId: 30,
4095
+ methodId: 11,
4056
4096
  name: "AccessRequestOk",
4057
4097
  args: [ {
4058
4098
  type: "short",
@@ -4065,6 +4105,8 @@ module.exports.ExchangeDeclare = 2621450;
4065
4105
 
4066
4106
  var methodInfoExchangeDeclare = module.exports.methodInfoExchangeDeclare = {
4067
4107
  id: 2621450,
4108
+ classId: 40,
4109
+ methodId: 10,
4068
4110
  name: "ExchangeDeclare",
4069
4111
  args: [ {
4070
4112
  type: "short",
@@ -4108,6 +4150,8 @@ module.exports.ExchangeDeclareOk = 2621451;
4108
4150
 
4109
4151
  var methodInfoExchangeDeclareOk = module.exports.methodInfoExchangeDeclareOk = {
4110
4152
  id: 2621451,
4153
+ classId: 40,
4154
+ methodId: 11,
4111
4155
  name: "ExchangeDeclareOk",
4112
4156
  args: []
4113
4157
  };
@@ -4116,6 +4160,8 @@ module.exports.ExchangeDelete = 2621460;
4116
4160
 
4117
4161
  var methodInfoExchangeDelete = module.exports.methodInfoExchangeDelete = {
4118
4162
  id: 2621460,
4163
+ classId: 40,
4164
+ methodId: 20,
4119
4165
  name: "ExchangeDelete",
4120
4166
  args: [ {
4121
4167
  type: "short",
@@ -4139,6 +4185,8 @@ module.exports.ExchangeDeleteOk = 2621461;
4139
4185
 
4140
4186
  var methodInfoExchangeDeleteOk = module.exports.methodInfoExchangeDeleteOk = {
4141
4187
  id: 2621461,
4188
+ classId: 40,
4189
+ methodId: 21,
4142
4190
  name: "ExchangeDeleteOk",
4143
4191
  args: []
4144
4192
  };
@@ -4147,6 +4195,8 @@ module.exports.ExchangeBind = 2621470;
4147
4195
 
4148
4196
  var methodInfoExchangeBind = module.exports.methodInfoExchangeBind = {
4149
4197
  id: 2621470,
4198
+ classId: 40,
4199
+ methodId: 30,
4150
4200
  name: "ExchangeBind",
4151
4201
  args: [ {
4152
4202
  type: "short",
@@ -4177,6 +4227,8 @@ module.exports.ExchangeBindOk = 2621471;
4177
4227
 
4178
4228
  var methodInfoExchangeBindOk = module.exports.methodInfoExchangeBindOk = {
4179
4229
  id: 2621471,
4230
+ classId: 40,
4231
+ methodId: 31,
4180
4232
  name: "ExchangeBindOk",
4181
4233
  args: []
4182
4234
  };
@@ -4185,6 +4237,8 @@ module.exports.ExchangeUnbind = 2621480;
4185
4237
 
4186
4238
  var methodInfoExchangeUnbind = module.exports.methodInfoExchangeUnbind = {
4187
4239
  id: 2621480,
4240
+ classId: 40,
4241
+ methodId: 40,
4188
4242
  name: "ExchangeUnbind",
4189
4243
  args: [ {
4190
4244
  type: "short",
@@ -4215,6 +4269,8 @@ module.exports.ExchangeUnbindOk = 2621491;
4215
4269
 
4216
4270
  var methodInfoExchangeUnbindOk = module.exports.methodInfoExchangeUnbindOk = {
4217
4271
  id: 2621491,
4272
+ classId: 40,
4273
+ methodId: 51,
4218
4274
  name: "ExchangeUnbindOk",
4219
4275
  args: []
4220
4276
  };
@@ -4223,6 +4279,8 @@ module.exports.QueueDeclare = 3276810;
4223
4279
 
4224
4280
  var methodInfoQueueDeclare = module.exports.methodInfoQueueDeclare = {
4225
4281
  id: 3276810,
4282
+ classId: 50,
4283
+ methodId: 10,
4226
4284
  name: "QueueDeclare",
4227
4285
  args: [ {
4228
4286
  type: "short",
@@ -4263,6 +4321,8 @@ module.exports.QueueDeclareOk = 3276811;
4263
4321
 
4264
4322
  var methodInfoQueueDeclareOk = module.exports.methodInfoQueueDeclareOk = {
4265
4323
  id: 3276811,
4324
+ classId: 50,
4325
+ methodId: 11,
4266
4326
  name: "QueueDeclareOk",
4267
4327
  args: [ {
4268
4328
  type: "shortstr",
@@ -4280,6 +4340,8 @@ module.exports.QueueBind = 3276820;
4280
4340
 
4281
4341
  var methodInfoQueueBind = module.exports.methodInfoQueueBind = {
4282
4342
  id: 3276820,
4343
+ classId: 50,
4344
+ methodId: 20,
4283
4345
  name: "QueueBind",
4284
4346
  args: [ {
4285
4347
  type: "short",
@@ -4311,6 +4373,8 @@ module.exports.QueueBindOk = 3276821;
4311
4373
 
4312
4374
  var methodInfoQueueBindOk = module.exports.methodInfoQueueBindOk = {
4313
4375
  id: 3276821,
4376
+ classId: 50,
4377
+ methodId: 21,
4314
4378
  name: "QueueBindOk",
4315
4379
  args: []
4316
4380
  };
@@ -4319,6 +4383,8 @@ module.exports.QueuePurge = 3276830;
4319
4383
 
4320
4384
  var methodInfoQueuePurge = module.exports.methodInfoQueuePurge = {
4321
4385
  id: 3276830,
4386
+ classId: 50,
4387
+ methodId: 30,
4322
4388
  name: "QueuePurge",
4323
4389
  args: [ {
4324
4390
  type: "short",
@@ -4339,6 +4405,8 @@ module.exports.QueuePurgeOk = 3276831;
4339
4405
 
4340
4406
  var methodInfoQueuePurgeOk = module.exports.methodInfoQueuePurgeOk = {
4341
4407
  id: 3276831,
4408
+ classId: 50,
4409
+ methodId: 31,
4342
4410
  name: "QueuePurgeOk",
4343
4411
  args: [ {
4344
4412
  type: "long",
@@ -4350,6 +4418,8 @@ module.exports.QueueDelete = 3276840;
4350
4418
 
4351
4419
  var methodInfoQueueDelete = module.exports.methodInfoQueueDelete = {
4352
4420
  id: 3276840,
4421
+ classId: 50,
4422
+ methodId: 40,
4353
4423
  name: "QueueDelete",
4354
4424
  args: [ {
4355
4425
  type: "short",
@@ -4378,6 +4448,8 @@ module.exports.QueueDeleteOk = 3276841;
4378
4448
 
4379
4449
  var methodInfoQueueDeleteOk = module.exports.methodInfoQueueDeleteOk = {
4380
4450
  id: 3276841,
4451
+ classId: 50,
4452
+ methodId: 41,
4381
4453
  name: "QueueDeleteOk",
4382
4454
  args: [ {
4383
4455
  type: "long",
@@ -4389,6 +4461,8 @@ module.exports.QueueUnbind = 3276850;
4389
4461
 
4390
4462
  var methodInfoQueueUnbind = module.exports.methodInfoQueueUnbind = {
4391
4463
  id: 3276850,
4464
+ classId: 50,
4465
+ methodId: 50,
4392
4466
  name: "QueueUnbind",
4393
4467
  args: [ {
4394
4468
  type: "short",
@@ -4416,6 +4490,8 @@ module.exports.QueueUnbindOk = 3276851;
4416
4490
 
4417
4491
  var methodInfoQueueUnbindOk = module.exports.methodInfoQueueUnbindOk = {
4418
4492
  id: 3276851,
4493
+ classId: 50,
4494
+ methodId: 51,
4419
4495
  name: "QueueUnbindOk",
4420
4496
  args: []
4421
4497
  };
@@ -4424,6 +4500,8 @@ module.exports.BasicQos = 3932170;
4424
4500
 
4425
4501
  var methodInfoBasicQos = module.exports.methodInfoBasicQos = {
4426
4502
  id: 3932170,
4503
+ classId: 60,
4504
+ methodId: 10,
4427
4505
  name: "BasicQos",
4428
4506
  args: [ {
4429
4507
  type: "long",
@@ -4444,6 +4522,8 @@ module.exports.BasicQosOk = 3932171;
4444
4522
 
4445
4523
  var methodInfoBasicQosOk = module.exports.methodInfoBasicQosOk = {
4446
4524
  id: 3932171,
4525
+ classId: 60,
4526
+ methodId: 11,
4447
4527
  name: "BasicQosOk",
4448
4528
  args: []
4449
4529
  };
@@ -4452,6 +4532,8 @@ module.exports.BasicConsume = 3932180;
4452
4532
 
4453
4533
  var methodInfoBasicConsume = module.exports.methodInfoBasicConsume = {
4454
4534
  id: 3932180,
4535
+ classId: 60,
4536
+ methodId: 20,
4455
4537
  name: "BasicConsume",
4456
4538
  args: [ {
4457
4539
  type: "short",
@@ -4492,6 +4574,8 @@ module.exports.BasicConsumeOk = 3932181;
4492
4574
 
4493
4575
  var methodInfoBasicConsumeOk = module.exports.methodInfoBasicConsumeOk = {
4494
4576
  id: 3932181,
4577
+ classId: 60,
4578
+ methodId: 21,
4495
4579
  name: "BasicConsumeOk",
4496
4580
  args: [ {
4497
4581
  type: "shortstr",
@@ -4503,6 +4587,8 @@ module.exports.BasicCancel = 3932190;
4503
4587
 
4504
4588
  var methodInfoBasicCancel = module.exports.methodInfoBasicCancel = {
4505
4589
  id: 3932190,
4590
+ classId: 60,
4591
+ methodId: 30,
4506
4592
  name: "BasicCancel",
4507
4593
  args: [ {
4508
4594
  type: "shortstr",
@@ -4518,6 +4604,8 @@ module.exports.BasicCancelOk = 3932191;
4518
4604
 
4519
4605
  var methodInfoBasicCancelOk = module.exports.methodInfoBasicCancelOk = {
4520
4606
  id: 3932191,
4607
+ classId: 60,
4608
+ methodId: 31,
4521
4609
  name: "BasicCancelOk",
4522
4610
  args: [ {
4523
4611
  type: "shortstr",
@@ -4529,6 +4617,8 @@ module.exports.BasicPublish = 3932200;
4529
4617
 
4530
4618
  var methodInfoBasicPublish = module.exports.methodInfoBasicPublish = {
4531
4619
  id: 3932200,
4620
+ classId: 60,
4621
+ methodId: 40,
4532
4622
  name: "BasicPublish",
4533
4623
  args: [ {
4534
4624
  type: "short",
@@ -4557,6 +4647,8 @@ module.exports.BasicReturn = 3932210;
4557
4647
 
4558
4648
  var methodInfoBasicReturn = module.exports.methodInfoBasicReturn = {
4559
4649
  id: 3932210,
4650
+ classId: 60,
4651
+ methodId: 50,
4560
4652
  name: "BasicReturn",
4561
4653
  args: [ {
4562
4654
  type: "short",
@@ -4578,6 +4670,8 @@ module.exports.BasicDeliver = 3932220;
4578
4670
 
4579
4671
  var methodInfoBasicDeliver = module.exports.methodInfoBasicDeliver = {
4580
4672
  id: 3932220,
4673
+ classId: 60,
4674
+ methodId: 60,
4581
4675
  name: "BasicDeliver",
4582
4676
  args: [ {
4583
4677
  type: "shortstr",
@@ -4602,6 +4696,8 @@ module.exports.BasicGet = 3932230;
4602
4696
 
4603
4697
  var methodInfoBasicGet = module.exports.methodInfoBasicGet = {
4604
4698
  id: 3932230,
4699
+ classId: 60,
4700
+ methodId: 70,
4605
4701
  name: "BasicGet",
4606
4702
  args: [ {
4607
4703
  type: "short",
@@ -4622,6 +4718,8 @@ module.exports.BasicGetOk = 3932231;
4622
4718
 
4623
4719
  var methodInfoBasicGetOk = module.exports.methodInfoBasicGetOk = {
4624
4720
  id: 3932231,
4721
+ classId: 60,
4722
+ methodId: 71,
4625
4723
  name: "BasicGetOk",
4626
4724
  args: [ {
4627
4725
  type: "longlong",
@@ -4646,6 +4744,8 @@ module.exports.BasicGetEmpty = 3932232;
4646
4744
 
4647
4745
  var methodInfoBasicGetEmpty = module.exports.methodInfoBasicGetEmpty = {
4648
4746
  id: 3932232,
4747
+ classId: 60,
4748
+ methodId: 72,
4649
4749
  name: "BasicGetEmpty",
4650
4750
  args: [ {
4651
4751
  type: "shortstr",
@@ -4658,6 +4758,8 @@ module.exports.BasicAck = 3932240;
4658
4758
 
4659
4759
  var methodInfoBasicAck = module.exports.methodInfoBasicAck = {
4660
4760
  id: 3932240,
4761
+ classId: 60,
4762
+ methodId: 80,
4661
4763
  name: "BasicAck",
4662
4764
  args: [ {
4663
4765
  type: "longlong",
@@ -4674,6 +4776,8 @@ module.exports.BasicReject = 3932250;
4674
4776
 
4675
4777
  var methodInfoBasicReject = module.exports.methodInfoBasicReject = {
4676
4778
  id: 3932250,
4779
+ classId: 60,
4780
+ methodId: 90,
4677
4781
  name: "BasicReject",
4678
4782
  args: [ {
4679
4783
  type: "longlong",
@@ -4689,6 +4793,8 @@ module.exports.BasicRecoverAsync = 3932260;
4689
4793
 
4690
4794
  var methodInfoBasicRecoverAsync = module.exports.methodInfoBasicRecoverAsync = {
4691
4795
  id: 3932260,
4796
+ classId: 60,
4797
+ methodId: 100,
4692
4798
  name: "BasicRecoverAsync",
4693
4799
  args: [ {
4694
4800
  type: "bit",
@@ -4701,6 +4807,8 @@ module.exports.BasicRecover = 3932270;
4701
4807
 
4702
4808
  var methodInfoBasicRecover = module.exports.methodInfoBasicRecover = {
4703
4809
  id: 3932270,
4810
+ classId: 60,
4811
+ methodId: 110,
4704
4812
  name: "BasicRecover",
4705
4813
  args: [ {
4706
4814
  type: "bit",
@@ -4713,6 +4821,8 @@ module.exports.BasicRecoverOk = 3932271;
4713
4821
 
4714
4822
  var methodInfoBasicRecoverOk = module.exports.methodInfoBasicRecoverOk = {
4715
4823
  id: 3932271,
4824
+ classId: 60,
4825
+ methodId: 111,
4716
4826
  name: "BasicRecoverOk",
4717
4827
  args: []
4718
4828
  };
@@ -4721,6 +4831,8 @@ module.exports.BasicNack = 3932280;
4721
4831
 
4722
4832
  var methodInfoBasicNack = module.exports.methodInfoBasicNack = {
4723
4833
  id: 3932280,
4834
+ classId: 60,
4835
+ methodId: 120,
4724
4836
  name: "BasicNack",
4725
4837
  args: [ {
4726
4838
  type: "longlong",
@@ -4741,6 +4853,8 @@ module.exports.TxSelect = 5898250;
4741
4853
 
4742
4854
  var methodInfoTxSelect = module.exports.methodInfoTxSelect = {
4743
4855
  id: 5898250,
4856
+ classId: 90,
4857
+ methodId: 10,
4744
4858
  name: "TxSelect",
4745
4859
  args: []
4746
4860
  };
@@ -4749,6 +4863,8 @@ module.exports.TxSelectOk = 5898251;
4749
4863
 
4750
4864
  var methodInfoTxSelectOk = module.exports.methodInfoTxSelectOk = {
4751
4865
  id: 5898251,
4866
+ classId: 90,
4867
+ methodId: 11,
4752
4868
  name: "TxSelectOk",
4753
4869
  args: []
4754
4870
  };
@@ -4757,6 +4873,8 @@ module.exports.TxCommit = 5898260;
4757
4873
 
4758
4874
  var methodInfoTxCommit = module.exports.methodInfoTxCommit = {
4759
4875
  id: 5898260,
4876
+ classId: 90,
4877
+ methodId: 20,
4760
4878
  name: "TxCommit",
4761
4879
  args: []
4762
4880
  };
@@ -4765,6 +4883,8 @@ module.exports.TxCommitOk = 5898261;
4765
4883
 
4766
4884
  var methodInfoTxCommitOk = module.exports.methodInfoTxCommitOk = {
4767
4885
  id: 5898261,
4886
+ classId: 90,
4887
+ methodId: 21,
4768
4888
  name: "TxCommitOk",
4769
4889
  args: []
4770
4890
  };
@@ -4773,6 +4893,8 @@ module.exports.TxRollback = 5898270;
4773
4893
 
4774
4894
  var methodInfoTxRollback = module.exports.methodInfoTxRollback = {
4775
4895
  id: 5898270,
4896
+ classId: 90,
4897
+ methodId: 30,
4776
4898
  name: "TxRollback",
4777
4899
  args: []
4778
4900
  };
@@ -4781,6 +4903,8 @@ module.exports.TxRollbackOk = 5898271;
4781
4903
 
4782
4904
  var methodInfoTxRollbackOk = module.exports.methodInfoTxRollbackOk = {
4783
4905
  id: 5898271,
4906
+ classId: 90,
4907
+ methodId: 31,
4784
4908
  name: "TxRollbackOk",
4785
4909
  args: []
4786
4910
  };
@@ -4789,6 +4913,8 @@ module.exports.ConfirmSelect = 5570570;
4789
4913
 
4790
4914
  var methodInfoConfirmSelect = module.exports.methodInfoConfirmSelect = {
4791
4915
  id: 5570570,
4916
+ classId: 85,
4917
+ methodId: 10,
4792
4918
  name: "ConfirmSelect",
4793
4919
  args: [ {
4794
4920
  type: "bit",
@@ -4801,6 +4927,8 @@ module.exports.ConfirmSelectOk = 5570571;
4801
4927
 
4802
4928
  var methodInfoConfirmSelectOk = module.exports.methodInfoConfirmSelectOk = {
4803
4929
  id: 5570571,
4930
+ classId: 85,
4931
+ methodId: 11,
4804
4932
  name: "ConfirmSelectOk",
4805
4933
  args: []
4806
4934
  };
package/lib/mux.js CHANGED
@@ -55,26 +55,11 @@ Mux.prototype._readIncoming = function() {
55
55
  // are empty, or we exhaust our ability to accept chunks.
56
56
  function roundrobin(streams) {
57
57
  var s;
58
- // if there's just one incoming stream we don't have to
59
- // go through all the dequeue/enqueueing
60
- if (streams.length === 1) {
61
- s = streams.shift();
62
- while (accepting) {
63
- var chunk = s.read();
64
- if (chunk !== null) {
65
- accepting = out.write(chunk);
66
- }
67
- else break;
68
- }
69
- if (!accepting) streams.push(s);
70
- }
71
- else {
72
- while (accepting && (s = streams.shift())) {
73
- var chunk = s.read();
74
- if (chunk !== null) {
75
- accepting = out.write(chunk);
76
- streams.push(s);
77
- }
58
+ while (accepting && (s = streams.shift())) {
59
+ var chunk = s.read();
60
+ if (chunk !== null) {
61
+ accepting = out.write(chunk);
62
+ streams.push(s);
78
63
  }
79
64
  }
80
65
  }
@@ -105,7 +90,7 @@ Mux.prototype._readIncoming = function() {
105
90
 
106
91
  Mux.prototype._scheduleRead = function() {
107
92
  var self = this;
108
-
93
+
109
94
  if (!self.scheduledRead) {
110
95
  schedule(function() {
111
96
  self.scheduledRead = false;