OmniQUIC Use Case Guides

Connecting to an existing server, Unreal Engine to Unreal Engine, datagram state sync, large transfers with streams, reconnecting, and peer-initiated streams.

This page covers implementation patterns by goal. Node inputs, outputs and events are listed in the Blueprint API Reference.

Pick the feature that matches your goal first.

Goal Feature to use Edition
Connect to an existing QUIC server Create Client and Connect Free / Full
Connect Unreal Engine instances to each other Client and server together Full Edition
Send the latest value at a short interval Datagrams (RFC 9221) Full Edition
Send data with no gaps, in order Bidirectional or unidirectional streams Free / Full
Reconnect to the same destination Reconnect (with datagrams, create the endpoint again too) Free / Full
Receive a stream the peer opened On Stream Started By Peer Free / Full

Connect to an existing QUIC server as a client

Use this pattern to talk to your own server that runs on QUIC, the transport HTTP/3 is built on. The plugin covers QUIC transport only; it does not include HTTP/3 framing or the h3 ALPN.

  • Starting nodes: Create Client → Configure → Connect
  • Keep: the Client variable and each opened Stream variable
  • Send: Send on the stream
  • Receive: On Data Received on the stream
  • Completion: On Connected for the connection, On Closed for the stream
  • Shutdown: Close or Abort → Disconnect → Shutdown

Check which ALPN the server accepts. If the values differ, the connection is never established. Set Alpn in Configure to the same value the server uses.

In production set Validation Policy to SystemTrust, and make sure the server certificate can be validated against the system trust store.

Connect Unreal Engine to Unreal Engine (Full Edition)

The features in this section are a Full Edition feature. Both the server side and the client side are built in Blueprint.

  1. On the server Actor, call Create Server and keep it in a variable.
  2. Set ALPN, port and certificate in Configure, then call Start to begin listening.
  3. Keep the Connection delivered by On Client Connected.
  4. To send from the server, call Open Bidirectional Stream or Open Unidirectional Stream on that Connection.
  5. On the client, Create Client and Connect, then open a stream from On Connected.
  6. Streams opened by the peer arrive in On Stream Started By Peer.
  • Keep: the Server variable, any Connection you still need, and each opened Stream.
  • Connection limit: Max Connections of 0 means no limit. With 1 or more, further clients are reported through On Client Rejected.
  • Shutdown: close each stream, call Disconnect on the connection, call Stop on the server, then Shutdown.

Get Connections returns a snapshot of the connections that are live at that moment. To keep a connection, store the Connection from On Client Connected in a variable.

Synchronise state with datagrams (Full Edition)

The features in this section are a Full Edition feature. Datagrams suit data where an older value arriving late does no harm and low latency matters more than delivery, such as positions and input.

  1. After the connection is established, call Create For Client (or Create For Server Connection on the server side) and keep the result in a variable.
  2. Bind On Datagram Received and interpret the received Data, for example with Bytes To String.
  3. Use On Datagram State Changed to learn when sending is possible and what the maximum size is.
  4. To send, pass a byte array to Send.
Property Behaviour
Reliability None. A datagram may never arrive
Ordering None. Arrival order is not the send order
Maximum size Get Max Datagram Size. It depends on the path MTU and can change while the connection lives
Oversized payload Fails with DatagramTooLarge. The payload is never split or truncated
Peer without support Fails with DatagramNotSupportedByPeer. There is no automatic switch to a stream
Reception Always on for every connection in the Full Edition. Datagrams that arrive before the endpoint exists are discarded

The endpoint belongs to one connection generation. After Reconnect, call Create For Client again and rebind the delegates. Every Send from the old endpoint fails with NotConnected.

Creating a datagram endpoint in Blueprint and sending state back and forth

Send large data over streams

Use streams for images, audio, long strings and anything else that must arrive complete and in order.

  1. Open a stream with Open Bidirectional Stream or Open Unidirectional Stream.
  2. Pass String To Bytes output, or bytes read from a file, to Send.
  3. To signal the end of sending, set Finish Send to true on the last payload, or call the Finish Send node.
  4. On the receiving side, use On Data Received and detect the end with On Peer Finished Sending.
Point Detail
Single send size Payloads above 4 GiB fail with InvalidArgument
Empty payload With Finish Send false, an empty array fails with InvalidArgument
Received chunks On Data Received fires per receive event, and bytes are never coalesced
Unidirectional peer stream A unidirectional stream the peer opened is receive-only. Send fails

When you send large amounts, queue incoming data and process it on the next frame instead of handling everything in one tick. All delegates fire on the GameThread, so a heavy receive handler directly affects frame time.

Reconnect

Use this pattern after a network change or a server restart.

  1. Check Get State. Reconnect only works while the client is connected, so confirm the state is Connected. If it is Disconnected, start again from Connect.
  2. Call Reconnect. The Host and Port from the last Connect are reused.
  3. Handle the end of the old connection in On Disconnected.
  4. If you use datagrams, call Create For Client again and rebind the delegates.
  5. Open the streams you need on the new connection.

Reconnect does not wait. The old connection’s On Disconnected and the old streams’ On Closed fire around the same time as the new connection comes up, in no guaranteed order. Use Get State, not On Disconnected, to decide whether the client is currently down.

Streams opened before the reconnect cannot be reused. Open new streams and resend any data that was in flight from your own code.

Receive peer-initiated streams

Both the client and the server can receive streams the peer opens.

  • Client: On Stream Started By Peer on Client
  • Server: On Stream Started By Peer on each Connection

Is Peer Initiated is true for the received Stream. A unidirectional stream the peer opened is receive-only: use On Data Received and On Peer Finished Sending to read it, and Close to finish.

The edition does not cap how many streams the peer opens. The cap applies only to streams you initiate.

Receiving a stream opened by the peer on the server side

Trying it on the Free Edition

The Free Edition focuses on the QUIC client.

  • The server and datagram sections can only be followed on the Full Edition.
  • You can hold two locally initiated streams open per connection. Going past that fails with StreamLimitReached, and the connection stays up.
  • The process can hold one active client connection at a time. A second concurrent Connect fails with ConnectionLimitReached.
  • Get Max Concurrent Streams and Get Max Concurrent Connections report the limits of the running build. Use their return values instead of comparing against a number.
  • Prepare a QUIC server to connect to.

A Blueprint built on the Free Edition moves to the Full Edition by replacing the plugin. Node and class names are the same.