Initial commit
[yaffs-website] / node_modules / websocket-driver / lib / websocket / driver / hybi / frame.js
1 'use strict';
2
3 var Frame = function() {};
4
5 var instance = {
6   final:        false,
7   rsv1:         false,
8   rsv2:         false,
9   rsv3:         false,
10   opcode:       null,
11   masked:       false,
12   maskingKey:   null,
13   lengthBytes:  1,
14   length:       0,
15   payload:      null
16 };
17
18 for (var key in instance)
19   Frame.prototype[key] = instance[key];
20
21 module.exports = Frame;