Adjusted buffer to succsessfully read maximum messages
This commit is contained in:
parent
7f4a9d8158
commit
e29cc04203
|
@ -70,7 +70,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func readFromServer(conn net.Conn, ws *websocket.Conn) {
|
func readFromServer(conn net.Conn, ws *websocket.Conn) {
|
||||||
buf := make([]byte, 512)
|
buf := make([]byte, 70000)
|
||||||
for {
|
for {
|
||||||
n, err := conn.Read(buf)
|
n, err := conn.Read(buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user