public abstract void OnError(WebSocketSessionError <ErrorT> error);
void OnError(object sender, WebSocketSharp.ErrorEventArgs e) { var error = new WebSocketSessionError <ErrorT>(null, e.Exception, e.Message); synchronizedFunctionCaller.ReserveCall(() => OnError(error)); }