Skip to content
Dyshay edited this page Feb 1, 2020 · 5 revisions

How to call function on server ?

CLI : await Connection.InvokeAsync("ReceivedHandler", package, tcpId);

The first params in string is the name of the function

How to call function on client (cli)

await Clients.Client(CliID).SendAsync("NewConnection", "34.251.172.139", 443, false, tcpId);

  • CLIiD = the ID of cli
  • NewConnection is the function on client
  • The others params, it's about the function
Clone this wiki locally