-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
As this issue is closed:
#13
I wonder what's the correct method to use websockets.
Here is what I tried in my rollup.config.js:
plugins: [
!production && dev({
extend: fp(async (server) => server.register(require("@fastify/websocket"))),
basePath: '/live',
dirs:['public'],
onListen(server) { server.log.info('Hello world')},
proxy: [{from: '/metadata/', to: 'http://localhost:5001/metadata/'},{from: '/temperature/', to: 'http://localhost:5001/temperature/', opts: { websocket: true}}]
}
),
When trying to access the endpoint with a websocket (/temperature)
status code remains: '101 Switching Protocols'
Metadata
Metadata
Assignees
Labels
No labels