Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

The web socket setup script fails on a page without jQuery

Open Beginner friendly
#1,640 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript

Research direction

Start with wicket-native-websocket-core/wicket-websocket-setup.js.tmpl and trace the setup script used by a WebSocketBehavior on the VANILLA example page. Add the proposed test for the rendered script and verify that pages without jQuery open the connection and receive push messages without any jQuery reference.

Written by the indexing model from the issue text.

Description

The script that sets up the web socket connection, wicket-websocket-setup.js.tmpl in wicket-native-websocket-core, still calls jQuery.extend(Wicket.WebSocket, ...) to store the page id, the context, the connection token and the other settings.

Master's JavaScript no longer needs jQuery. On a page that does not load jQuery, a page with a WebSocketBehavior fails with ReferenceError: jQuery is not defined, the connection is never opened and no push message reaches the page. The examples show it when started with -Dwicket.examples.use=VANILLA.

Proposed fix: use Object.assign instead of jQuery.extend, which behaves the same for this flat object, and add a test that the rendered setup script does not refer to jQuery.

Dominant language
Java
Stars
797
Forks
416
Avg merge
1d 8h
Merged PRs (30d)
43

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from apache/wicket

All issues in apache/wicket

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.