onConnected property

void Function()? onConnected
getter/setter pair

Fired when the socket connects (before the handshake is sent).

Implementation

static void Function()? onConnected;