37 |
38 |

39 |
40 |
Amazing! NANCY is
running on SCRIPTCS!
41 | for more information visit
nancyfx.org
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/net/README.md:
--------------------------------------------------------------------------------
1 | # ScriptCs.Net Sample: TCP Chat
2 | Demo of the [ScriptCs.Net](https://github.com/dschenkelman/scriptcs-net) script pack that leverages a TCP server and provides the ability to create various TCP clients to showcase a broadcasting chat.
3 |
4 | ## Prerequisites
5 | * [Install scriptcs](https://github.com/scriptcs/scriptcs-samples/blob/master/README.md).
6 | * Install packages by executing `scriptcs -install`.
7 |
8 | ## Running the server
9 | 1. Run `scriptcs chatServer.csx` (make sure you are running as admin)
10 |
11 | ## Running the clients
12 | 1. Run `scriptcs chatClient.csx` (make sure you are running as admin)
13 | 2. To send messages type and press **ENTER**. You should connect with at least 2 clients to see the messages from one in the other one.
14 | 3. When you want to quit type *:close* and press **ENTER**.
15 |
16 | If you have feedback create an issue in the [ScriptCs.Net repo](https://github.com/dschenkelman/scriptcs-net/issues/1)
17 |
--------------------------------------------------------------------------------
/net/chatClient.csx:
--------------------------------------------------------------------------------
1 | var net = Require