Skip to content

SockJS issue when port is different than 8080 #345

@jpoo90

Description

@jpoo90

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
After executing an AJAX request, this errors from sock start populating the console

preactsockerror

If the current behavior is a bug, please provide the steps to reproduce.

  • Run a server on port 8080
  • npm start from the preact-cli created project.
  • Use fetch to request something.
  • Sock will start logging errors into the console.

What is the expected behavior?
I think sock should be mapped to the port were the app is running.

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information.

  • node version: 8.1.4
  • npm version: 5.3.0
  • Operating system: osX
  • preact-cli: 1.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions