DEV Community

Discussion on: Tutorial: Using Redux and Redux-Saga to handle WebSocket messages.

dzintars profile image
Dzintars Klavins

Have you tried

export const selectApplication = (id: string): ApplicationActionTypes => ({
  type: ApplicationTypes.SELECT,
  meta: { websocket: true },
Enter fullscreen mode Exit fullscreen mode

I mean - to meta-tagg messages so you can intercept only tagged messages at middleware level and send them over wss?
Also, how do you sync message signatures with the back-end? I have an rough idea to try generate TS message typings from protobufs alongside with swagger docs. But i didn't tried that yet.