send method
Implementation
@override
Future<void> send({required JsonRpcPayload payload, dynamic context}) async {
socket ??= await _register();
try {
socket!.sink.add(jsonEncode(payload.toJson()));
} catch (e) {
_onError(id: payload.id, e: e);
}
}