SocketTransport.withFlatBuffersSerializer constructor
SocketTransport.withFlatBuffersSerializer(})
Implementation
factory SocketTransport.withFlatBuffersSerializer(
String host,
int port, {
bool ssl = false,
bool allowInsecureCertificates = false,
Object? tlsSecurityContext,
int messageLengthExponent = SocketHelper.maxMessageLengthExponent,
}) => SocketTransport(
host,
port,
flatbuffers.Serializer(),
SocketHelper.serializationFlatBuffers,
ssl: ssl,
allowInsecureCertificates: allowInsecureCertificates,
tlsSecurityContext: tlsSecurityContext,
messageLengthExponent: messageLengthExponent,
);