# Class: PacketWritestream

## vertx-js/packet_writestream~ PacketWritestream

#### new PacketWritestream()

Source:
  - vertx-js/packet_writestream.js, line 30

### Methods

#### drainHandler(handler) → {PacketWritestream}

##### Parameters:

Name | Type | Description
--- | --- | ---
`handler` | function |

Source:
  - vertx-js/packet_writestream.js, line 115

##### Returns:

Type
  PacketWritestream

#### end(t)

Same as WriteStream#end but writes some data to the stream before ending.

##### Parameters:

Name | Type | Description
--- | --- | ---
`t` | Buffer |

Source:
  - vertx-js/packet_writestream.js, line 42

#### exceptionHandler(handler) → {PacketWritestream}

##### Parameters:

Name | Type | Description
--- | --- | ---
`handler` | function |

Source:
  - vertx-js/packet_writestream.js, line 71

##### Returns:

Type
  PacketWritestream

#### setWriteQueueMaxSize(maxSize) → {PacketWritestream}

##### Parameters:

Name | Type | Description
--- | --- | ---
`maxSize` | number |

Source:
  - vertx-js/packet_writestream.js, line 101

##### Returns:

Type
  PacketWritestream

#### write(data) → {PacketWritestream}

##### Parameters:

Name | Type | Description
--- | --- | ---
`data` | Buffer |

Source:
  - vertx-js/packet_writestream.js, line 87

##### Returns:

Type
  PacketWritestream

#### writeQueueFull() → {boolean}

This will return `true` if there are more bytes in the write queue than the value set using PacketWritestream#setWriteQueueMaxSize

Source:
  - vertx-js/packet_writestream.js, line 58

##### Returns:

true if write queue is full

Type
  boolean