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

  • Home
  • SEARCH
  • 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 8696869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:22:17+00:00 2026-06-13T01:22:17+00:00

I am reading on how to implement websockets. For now I am looking at

  • 0

I am reading on how to implement websockets. For now I am looking at the fancywebsockets implementation since it is easier to setup. My question is more catered on understanding websockets in general so I like to have some classification on this.

  1. Can you control the data that is being sent by the WS (I.E client receiving the data)?

  2. How do you deal with in, let’s say a Private message scenario, where you also store the message in the database. If you store a text in the DB and display the message on the screen, how does WS goes about putting that change in other people browsing that page. (Does the WS listen to every changes that occurred in that PAGE?). A clear example would be in facebook, where two people browsing the same wall sees the update of the wall owner?

  3. Although a bit unrelated, but curious question. If websockets provide us a realtime update on data, why hasn’t anyone created a fork version of Google Wave services. Is it because not every browser has a definite implementation of it?

Thanks.

  • 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-13T01:22:18+00:00Added an answer on June 13, 2026 at 1:22 am

    About 1. Really I don’t understand this question, Websockets connection is the same as TCP connection, you can modify received date before sending it back. Simple example in Bristleback Server (Server gets a preview of edited user status, then checks whether it contains illegal words and then complete preview of the status is sent back to the user:

    @ActionClass
    public class ClientNotificationUpdateAction {
    
      @Action
      public UserStatus previewEditedStatus(FacebookUser user, UserStatus status) {
        removeBadWords(status);
        return status;
      }
    }
    

    About 2. WebSockets server has information about all connected users so message can be simple sent to all connected users or additionally filtered to send this notification for example to close friends only. And here’s some more code (client updates his status and this status is sent back to all his friends).

    @ActionClass
    public class ClientNotificationUpdateAction {
    
      @ObjectSender
      private ConditionObjectSender conditionObjectSender;
    
      @Action
      public void updateStatus(FacebookUser user, UserStatus status) throws Exception {
        SendCondition sendToFriendsOfUser = new FiendsOfUserCondition(user);
    
        BristleMessage message = ActionMessageFactory
          .createMessage("ClientNotificationUpdate", "updateStatus", status);
        conditionObjectSender.sendMessage(message, sendToFriendsOfUser);
      }
    }
    

    About 3. It’s true that not all internet browsers implement WebSockets protocol (especially in mobile devices)

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

Sidebar

Related Questions

I'm looking to implement a CRC-8 checksum - and in reading up on CRC
I'm reading a lot since some weeks to implement an encrypt/decrypt algoritm for my
That's basically the question, is there a right way to implement operator<< ? Reading
After reading What is the best way to implement nested dictionaries? why is it
I want to implement a great text reading experience in my app, similar to
When reading a post some points were given without example : To implement IEnumerable
I am reading a code where it is supposed to implement a bit vector
I've been reading up on message queueing lately, and I'd like to implement a
I'm trying to implement named pipes in C++, but either my reader isn't reading
I've been reading on how to implement a crawler. I understand that we start

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.