jquery-form / jquery-form/form
WebSocket option?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.1k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
Description:
Providing an option by which a form can be submitted via WebSockets.
Expected Behavior:
While I know WebSockets is more known for push notifications and ongoing duplex communications, I understand some prefer to use it for form submissions in preference to regular HTTP for security reasons (I guess some of the header vulnerabilities may not apply?). If you see this as indeed desirable (apologize for not having found much on the subject), I was thinking it might be convenient to be able to reuse the same API with jquery form.
(I suppose one could even have configuration to keep the connection ongoing, e.g., for forms which are not just one-use, but my own current use case is just if it may hold advantages for login.)
If you are open to this, I may be able to prepare a PR to implement, but wanted to know if you had heard of such usage and your opinion about it if so.
Actual behavior:
One must use Ajax or write one's own WebSockets code without the ability to reuse jquery form code.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No implementation file or test is named. Start by reviewing the plugin's existing form-submission API and how it handles Ajax, then determine whether WebSocket submission fits the project's scope and API; done would require an agreed design, implementation boundaries, and maintainer-approved tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100