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 7904431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:03:49+00:00 2026-06-03T10:03:49+00:00

I wrote an algorithm to process Websockets data in PHP. Decoding from Chrome/Firefox is

  • 0

I wrote an algorithm to process Websockets data in PHP. Decoding from Chrome/Firefox is fine, but I’m consistently having a problem sending data from the server to the client (Chrome 18, Websockets 13). The server routine automatically responds with “Received” after receiving a message.

Continuation frame error.

There are absolutely no other bytes following the message, as the STDOUT indicates and the WireShark dump indicates (data retrieved via RawCap). In WireShark/RawCap, for some reason, the server->client message appeared under an “ACK” message.

STDOUT

Wireshark

I would REALLY appreciate someone’s insight on this. It’s driving me crazy.

Dustin Oprea

  • 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-03T10:03:52+00:00Added an answer on June 3, 2026 at 10:03 am

    I got it. It turns out that the code that I originally adopted put a single NULL character after the newlines following the handshake-response headers, and I hadn’t noticed this. It looks like a) the browser moves all of the received websocket messages through a character buffer that leaves the single NULL character at the front once the authentication-response is processed, and b) it wasn’t a problem until the -next- message was received.

    Flow:

    1) Browser (Chrome and Firefox) receives a handshake-response with an extra NULL on the end.
    2) Browser approves handshake response.
    3) Browser sends a message (in this case, with a “text” opcode, not that it necessarily matters) to the server.
    4) Server correctly decodes frames.
    5) Server sends a message back through established websocket session.
    6) Client complains about having an unexpected continuation frame.

    Under some conditions, I believe that I was able to manipulate the message to suppress an error from the browser, but still did not receive the server-message in the browser.

    As an example of the above, I believe that, originally, the server was sending an automatic text response of “response”, and got the message above. I later changed this to “1234”, and still got the message above. However, I changed this to “123”, and no longer got the error, but still did not get a message event in the Javascript.

    Dustin Oprea

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

Sidebar

Related Questions

i wrote i quicksort algorithm in c# but it has a problem,when i compile
i wrote i quicksort algorithm in c# but it has a problem,when i compile
I wrote an algorithm to find a solution to the subset sum problem in
I dont project about process realtime data from cyber glove( Virtual Hand ) .
I'm looking into developing an application that will process data from a line-scan camera
I wrote bresenham algorithm for 0<Angular coefficient<1 I don't know much about graphics in
I wrote a sorting algorithm in python. It returns a Python Dictionary object. How
I wrote an in-place permutation algorithm [an exercise in TAOCP3], where the inner loop
Let's say I wrote a program containing an algorithm that had an exponential runtime
I once wrote a Tetris AI that played Tetris quite well. The algorithm I

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.