openresty / openresty/lua-resty-websocket

You have wrote two demo but they does not worked with each other

Open
#28 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
523
Forks
112
Avg merge
1d 16m
Merged PRs (30d)
2

Description

My English is not good,so sorry.
I was download the openresty and put it to work.Then I followed your demo,but they does not worker with each other.It make me confused for second,but I have fix it.
I think the reason is:
The client connected success,then the client blocked on method wb:recv_frame()
The server created success,then the server blocked on method wb:recv_frame()
Then I got a problem,They both will block util timeout.
I think you may want to rewrite those two demos,so that the others can avoid this problem and stop wasting time.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the two demo examples and trace the client and server flow around wb:recv_frame(). Reproduce the reported behavior in OpenResty, where both sides block until timeout, then update the demos so they work together without this confusion. Done means a newcomer can follow both demos successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.