fbthrift 1.0.0+2 fbthrift: ^1.0.0+2 copied to clipboard
Thrift for Dart, forkde from Apache Thrift and translated from fbthrift java version.
// Copyright (c) 2023- All souce code authors. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.
import 'dart:io';
import 'package:fbthrift/fbthrift.dart';
Future<void> main(List<String> arguments) async {
TTransport transport =
TSocketTransport(socket: await Socket.connect('127.0.0.1', 9669));
var headTransport = THeaderTransport(
transport: transport,
clientTypes: [ClientTypes.HEADERS],
supportedClients: [false],
);
var protocol = THeaderProtocol(headTransport);
print(protocol);
}