The ServerBuilder has this default line:
private URL urlBuilder = new URL(DomGlobal.window.location.getHref());
So that clients only need to set the path by default:
builder.setPath("my-app");
But urls with fragments like this fail:
http://localhost:8080/my-app/#myfragment
So imagine someone uses something like Nalu with the hash fragments and refreshes the browser.
You will get an error like this:
(SyntaxError) : Failed to construct 'WebSocket': The URL contains a fragment identifier ('myfragment?checksum=6804f2dc783c239cc63a2fc3138dcc28cd1f06d824a8bb1f07f7bc50028dcf10e7e069d2184de800'). Fragment identifiers are not allowed in WebSocket URLs.
Default value should ideally exclude fragments.
The ServerBuilder has this default line:
So that clients only need to set the path by default:
But urls with fragments like this fail:
http://localhost:8080/my-app/#myfragment
So imagine someone uses something like Nalu with the hash fragments and refreshes the browser.
You will get an error like this:
Default value should ideally exclude fragments.