Skip to content

Use specific URL for the reload web socket#322

Open
garyb wants to merge 1 commit into
tapio:masterfrom
garyb:specific-websocket
Open

Use specific URL for the reload web socket#322
garyb wants to merge 1 commit into
tapio:masterfrom
garyb:specific-websocket

Conversation

@garyb

@garyb garyb commented Aug 6, 2019

Copy link
Copy Markdown

I'm using live-server to serve static files and then have it proxying an API also, that API has a web socket endpoint, but it's unreachable at the moment as any web socket connection attempts made to the live-server will be grabbed by the reload socket.

This PR gives the reload socket endpoint in the injected code a slightly less generic name (in the hopes of avoiding potential overlaps) and adds a check to only connect the reload handling stuff if the request matches the name, allowing middleware or other things to pick up other socket requests as necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant