Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sid-bhatia-0/simplechatserver
Single room chat server implementation in Julia using TCP sockets
https://github.com/sid-bhatia-0/simplechatserver
chatroom chatserver julia socket-programming tcp-socket
Last synced: about 1 month ago
JSON representation
Single room chat server implementation in Julia using TCP sockets
- Host: GitHub
- URL: https://github.com/sid-bhatia-0/simplechatserver
- Owner: Sid-Bhatia-0
- Created: 2021-11-13T05:20:05.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-19T06:51:57.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T18:04:27.498Z (4 months ago)
- Topics: chatroom, chatserver, julia, socket-programming, tcp-socket
- Language: Julia
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimpleChatServer
This is a simple chat server written in Julia. It uses TCP sockets to communicate messages between a server and multiple clients.
### Getting Started
Follow these steps to test the chat server on you localhost:
1. Clone the project
```
$ git clone https://github.com/Sid-Bhatia-0/SimpleChatServer.git
```1. Go inside the project directory (`SimpleChatServer`) and start the Julia REPL
```
$ julia
```1. Activate and instantiate the project from the Julia REPL
```
julia> import Pkg; Pkg.activate("."); Pkg.instantiate()
```This might take some time. This will generate a `Manifest.toml` file inside the directory.
1. Exit the REPL
1. Run `server.jl` in your terminal
```
$ julia --project=. server.jl
```Wait for the server to acknowldege that it has started listening.
1. Run `client.jl` in a few different terminals and start chatting.
```
$ julia --project=. client.jl
```You will be prompted to enter a nickname. The nickname must be composed only of a-z, A-Z, and 0-9, and its length must be between 1 to 32 characters (both inclusive).
Clients may come and go, while the server will keep running. Press `Ctrl-c` to exit the processes.
Here is a screenshot