Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8126915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:19:53+00:00 2026-06-06T07:19:53+00:00

I am looking at the websocket-chat example. It unveils much, but I still cannot

  • 0

I am looking at the websocket-chat example. It unveils much, but I still cannot get something. I understand how messages are received, processed and sent on the web page side.

However, Play captures websocket messages by means of the receive method of an Akka actor. In the websocket-chat, there are several cases in this method, but I don’t get, how does it know which websocket message should be mapped to which case. In fact, I don’t understand the path that a websocket message follows upon entering Play’s domain, how is it processed and how can different message types/kinds be sent from the webpage.

I have not find any info or sources related to this. Could please someone explain this or point to some kind of a good reference?

UPDATE:

The link to the original example.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:19:54+00:00Added an answer on June 6, 2026 at 7:19 am

    The receive method from the sample doesn’t have any link to the Play Websocket API. This receive method comes from the Akka library.

    The Websockets events are managed through an Iteratee, which create and send a Talk message to the Actor system.

    Simply put, it allows to have a highly scalable system (non-blocking), by sending messages between “workers”.

    So I suggest that you take a look at the Actor model in the Akka library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a websocket/node.js chat implementation which supports multiple rooms. I'm also going
I'm looking for c language server of websocket version 13 RFT6455 protocol to study
Looking for a good example of how to set up child models in knockoutjs.
Looking at the following code, does theme[sprite].img get nested inside result[definition].data (as theme[sprite].img is
Im looking for some tool that provides pub/sub model, but instead string channels allows
Earlier today I came across Kaazing's WebSocket API for HTML5. Looks fantastic, but as
I've got a Rails application, and am looking to add some sort of WebSocket
Looking to validate PO Box but wanted to know if such validation existed. I
Looking for an example that: Launches an EXE Waits for the EXE to finish.
Looking for suggestions on how to approach this problem and to understand if Domain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.