Skip to content

Commit

Permalink
fix: webgl build fix #1136 (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach committed Oct 3, 2019
1 parent 02f4eeb commit c85d0df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Mirror/Runtime/Transport/Websocket/ClientJs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit c85d0df

Please sign in to comment.