addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgoogleimageimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Chat Client-server app

From: Kwabena A.
Sent on: Sunday, July 29, 2012 7:51 PM

I managed to get the chat client-server application working and compiling properly. It is on SBT and I am not using the AKKA framework for this. I am using the Actors that come with the Scala library.

I do have a couple of issues though and a <insert refreshing beverage of your choice> for whoever can fix it for me. 

There are two apps in this SBT application. Running the will give you an option of which application you want to run. To get my concept you need to run the same SBT app in two separate terminals, choose server on one and client in the other. 
The client uses console.readLine() to capture user input so typing should and hitting return should send the message to the remote actor/server. Now this is where there is the problem below is the runtime exception I get when the message is send a message. 

Let me know what you think of it. 

Finally my github is at you should find the repo there. And Pawel you can pull it into the user group github account.

Our Sponsors

  • Scala Dojo

    Web site for monthly Scala Dojo

  • Scala Jobs

    Google Group of Scala Jobs in the London Area

  • _.underscore

    Scala consultants, trainers, and developers, based in London, UK

  • Springer

    Help and supporters of the monthly dojo

  • Skills Matter

    Provide the venue for many of our meetings.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy