I wish I could run code from one emacsclient session inside other. I'm working in terminal via ssh, terminal has two panes connected to machine with emacs via ssh, each pane has its own emacsclient connected to server on the same machine, and I wish I could call function from one pane with first emacsclient so it will be evaluated in other emacsclient from other pane.
Is there some mechanism available for that? As far as I know emacsclient communicates with server via socket, can I manually add commands to that socket?
If not, maybe I can write for some file so that each emacsclient watches that file and if emacsclient ID (is it frame ID?) maches with command - simply execute text in file as command? Is there some workaround for that?