Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev Server documentation: transportMode option #3239

Closed
knagaitsev opened this issue Aug 9, 2019 · 1 comment
Closed

Dev Server documentation: transportMode option #3239

knagaitsev opened this issue Aug 9, 2019 · 1 comment

Comments

@knagaitsev
Copy link
Contributor

Feature to document

transportMode option: webpack/webpack-dev-server#2116

Author(s)

Myself

/cc @evilebottnawi @hiroppy

Additional information

This option allows the user to specify which socket transport mode to use for communication between the dev server and client. It is still an experimental option. Usage:

string:

transportMode: 'sockjs'
transportMode: 'ws'

object, with server (can be string mode/path or class), client (string mode/path) properties:

equivalent to ws mode above:

transportMode: {
  server: 'ws',
  client: 'ws'
}

custom implementation:

transportMode: {
  server: require('path/to/custom/server'), // can be path or class (class seen here)
  client: require.resolve('path/to/custom/client') // must be path
}

[x] I am willing to work on this issue and submit a pull request.

@jeffin143
Copy link
Contributor

@montogeek , This is done and dusted, Let's close this :)

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

No branches or pull requests

3 participants