Skip to content

[3.0.0-alpha6] Only the last websocket client gets messages #1248

@dev357

Description

@dev357
  • Operating System: Windows 10
  • Node Version: 9.3.0
  • NPM Version: 5.4.2
  • webpack Version: 4.0.0-alpha.2
  • webpack-dev-server Version: 3.0.0-alpha6
  • This is a bug
  • This is a feature request
  • This is a modification request

Expected Behavior

when connecting multiple clients to the server all of them should receive updates through the websocket connection

Actual Behavior

only the client that connected last will receive updates

For Bugs; How can we reproduce the behavior?

connect two clients to the devserver. Update a file that should cause a refresh. Only the client that was connected last will receive the reload event.

Notes

from what i can tell, the DevServer class can only save a single socket connection. It is overwritten when a new connection is established.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions