renamed 'message' to 'payload'

This commit is contained in:
brianc 2010-10-23 22:45:03 -05:00
parent 16352f9156
commit 09d8e5d1e7
3 changed files with 4 additions and 4 deletions

View File

@ -318,7 +318,7 @@ p.parse2 = function(msg) {
p.parseA = function(msg) {
msg.processId = this.parseInt32();
msg.channel = this.parseCString();
msg.message = this.parseCString();
msg.payload = this.parseCString();
return msg;
};

View File

@ -98,11 +98,11 @@ buffers.bindComplete = function() {
return new BufferList().join(true, '2');
};
buffers.notificationResponse = function(id, channel, message) {
buffers.notificationResponse = function(id, channel, payload) {
return new BufferList()
.addInt32(id)
.addCString(channel)
.addCString(message)
.addCString(payload)
.join(true, 'A')
};

View File

@ -158,7 +158,7 @@ var expectedNotificationResponseMessage = {
id: 'A',
processId: 4,
channel: 'hi',
message: 'boom'
payload: 'boom'
};
test('Connection', function() {