function openStream
Swift
func openStream(session: UnsafeMutableRawPointer, buffer: FlatBuffer, timeout: UInt32, onFailure: () -> Void) throws -> Bool
Sends a prepared StreamInit and arms the stream if the server accepts it.
Returns true if the reply is an IDL exception, which is left in buffer, and
throws for anything else that isn't success. onFailure runs before either,
to clean up what was registered for the stream. Used by generated code.
nprpc_swift/Sources/NPRPC/StreamReader.swift:331