t3l3p05t 0.0.1
t3l3p05t: ^0.0.1 copied to clipboard
A UDP based copy of Graphene Server
t3l3p05t #
A UDP based copy of Graphene Server
Status: Experimental, untested code. #
Library Example #
String message = "Hello World";
await startServer(
internetAddress: InternetAddress.anyIPv4,
port: 8080,
query: Query(
resolver: {
"hello_world": (arguments)async{
return message;
}
},
),
mutations: Mutation(
resolver: {
"update_message": (arguments)async{
String newMessage = arguments["new_message"];
message = newMessage;
return true;
},
},
),
);