Home

Awesome

Chat Server with Cloud Haskell

An implementation of a Chat Server with Cloud Haskell

Installation

Clone this repository and run stack install in its root folder.

Run server

To run the server, you must provide the following arguments:

For example:

chatServer --host 192.168.0.33 --port 8080 --room myChat

As soon as the server is launched it will prompt its EndPointAddress, which is needed for clients to establish a connection. The prompt log will look like the following:

Server launched at: 192.168.0.33:8080:0

Run client

To run the client, you must provide the following arguments:

For example:

chatClient --address 192.168.0.33:8080:0 --host 127.0.0.1 --port 8880 --room myChat

Note that the EndPointAddress you must provide is the value provided by the chat server once it has been launched.