fix: webgl build fix #1136 (#1137)

This commit is contained in:
Paul Pacheco 2019-10-03 01:05:28 -05:00 committed by GitHub
parent 02f4eebfce
commit c85d0df533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,9 +60,9 @@ public void Disconnect()
}
// send the data or throw exception
public void Send(byte[] data)
public void Send(ArraySegment<byte> segment)
{
SocketSend(m_NativeRef, data, data.Length);
SocketSend(m_NativeRef, segment.Array, segment.Count);
}