* @param {Number} [protocolVersion] * @returns {exports.Parser}
(protocolVersion)
| 1199 | * @returns {exports.Parser} |
| 1200 | */ |
| 1201 | function newInstance(protocolVersion) { |
| 1202 | if (!protocolVersion) { |
| 1203 | protocolVersion = 2; |
| 1204 | } |
| 1205 | return new streams.Parser({objectMode:true}, new Encoder(protocolVersion, {})); |
| 1206 | } |
| 1207 | |
| 1208 | /** |
| 1209 | * Test Helper method to get a frame header with stream id 12 |
no outgoing calls
no test coverage detected