send method
Send a JSON-RPC message
Implementation
@override
void send(dynamic message) {
if (_isClosed) return;
// Check if this is the initialized notification
if (message is Map &&
message['method'] == 'notifications/initialized' &&
!_getStreamActive) {
_startGetStream();
}
_sendRequest(message).catchError((error) {
_messageController.addError(error);
});
}