Skip to content

Single room chat server implementation in Julia using TCP sockets

Notifications You must be signed in to change notification settings

Sid-Bhatia-0/SimpleChatServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
    
  2. Go inside the project directory (SimpleChatServer) and start the Julia REPL

    $ julia
    
  3. 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.

  4. Exit the REPL

  5. Run server.jl in your terminal

    $ julia --project=. server.jl
    

    Wait for the server to acknowldege that it has started listening.

  6. 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

About

Single room chat server implementation in Julia using TCP sockets

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages