khenaidoo | 2672188 | 2021-08-11 17:42:52 -0400 | [diff] [blame] | 1 | // Copyright 2016 The Gorilla WebSocket Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style | ||||
3 | // license that can be found in the LICENSE file. | ||||
4 | |||||
5 | // +build go1.8 | ||||
6 | |||||
7 | package websocket | ||||
8 | |||||
9 | import "net" | ||||
10 | |||||
11 | func (c *Conn) writeBufs(bufs ...[]byte) error { | ||||
12 | b := net.Buffers(bufs) | ||||
13 | _, err := b.WriteTo(c.conn) | ||||
14 | return err | ||||
15 | } |