79092963

Date: 2024-10-16 07:52:27
Score: 2.5
Natty:
Report link

It did not work with the variable. The expression must always be fixed at runtime. Nevertheless, I was able to solve the problem because the path can also be specified relatively:

const str3 = “/sse”;
var source = new EventSource(str3);  

This works perfectly!

Reasons:
  • Blacklisted phrase (1): did not work
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Michael Wenning