/// <summary> /// Acquires a <see cref="WebSocketPong"/> instance. /// </summary> /// <param name="payload">The payload to copy.</param> /// <returns> A <see cref="WebSocketPong"/> that can be sent to the remote client.</returns> public static WebSocketPong Acquire(BufferSegment payload) { var packet = Pool.Acquire(); packet.Buffer = payload.AsArray(); return(packet); }