Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Nhowka committed Jul 26, 2018
2 parents 31e9087 + b6f6277 commit 273eef2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,30 @@ Program.mkProgram init update view

That way, only the `BridgeAware` type needs to be on the shared file

## Webpack caveat

When using the development mode of Webpack, usually a proxy is defined so the server calls can be redirected to the right place. That proxy doesn't work for websockets by default. To enable them, use `ws: true` when configuring the endpoint.

Example:

```
devServer: {
proxy: {
'/api/*': {
target: 'http://localhost:' + port,
changeOrigin: true
},
'/socket': {
target: 'http://localhost:' + port,
ws: true
}
},
contentBase: "./public",
hot: true,
inline: true
}
```

## Anything more?

This documentation is on an early stage, if you have any questions feel free to open an issue or PR so we can have it in a good shape. You can check a test project [here](https://github.com/Nhowka/TestRemoting). I hope you enjoy using it!

0 comments on commit 273eef2

Please sign in to comment.