diff --git a/metadapta.go b/metadapta.go index 03bef8e..55f1c0c 100644 --- a/metadapta.go +++ b/metadapta.go @@ -194,7 +194,7 @@ func (this *transA) Send(method uint16, data []byte) error { return this.parent.sendMessageSafe(this.id, method, data) } -func (this *transA) SendWriter(method uint16) (io.Writer, error) { +func (this *transA) SendWriter(method uint16) (io.WriteCloser, error) { // close previous writer if necessary if this.currentWriter != nil { this.currentWriter.Close()