Skip to content

Commit

Permalink
Merge branch 'release/0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
DominusKelvin committed Sep 10, 2024
2 parents b617e18 + ec4a085 commit e8210d1
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 200 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,9 @@ module.exports = function defineShipwrightHook(sails) {
const rsbuildDevServer = await rsbuild.createDevServer()
sails.after('hook:http:loaded', async () => {
sails.hooks.http.app.use(rsbuildDevServer.middlewares)
sails.hooks.http.server.on(
'upgrade',
rsbuildDevServer.onHTTPUpgrade
)
rsbuildDevServer.connectWebSocket({
server: sails.hooks.http.server
})
})
sails.on('lifted', async () => {
await rsbuildDevServer.afterListen()
Expand Down
Loading

0 comments on commit e8210d1

Please sign in to comment.