RemoSharp can be used to create C# script components within Grasshopper from text inputs. The text can be provided from any source, including from sources outside of Grasshopper.
The main purpose for developing this plug-in was to create a tool that would enable collaborative work between multiple designers regardless of their location. As this tool allows for scripting from pure text, the text can be provided from external applications, WebSocket communications over the internet and local networks, and other communication methods, such as UDP/TCP. In short, this tool allows users to script remotely in other computers' Grasshopper documents while using inputs from both sides.
This tool works particularly well with Bengesht's communication tools developed by Behrooz Tahanzadeh: https://www.food4rhino.com/en/app/bengesht
Tutorials on how to work with WebSockets: https://youtube.com/playlist?list=PLx3k0RGeXZ_wZ_gYpYXfH6FTK7e0cDL0k