2.5.1 • Published 8 months ago

yaschema-ws-api v2.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

yaschema-ws-api

Downloads Size

Web socket API support for yaschema.

Basic Example

export const stream = makeWsApi({
  routeType: 'stream',
  url: '/stream',
  requests: {
    ping: schema.object({ echo: schema.string().allowEmptyString().optional() }).optional(),
    hello: schema.any().optional()
  },
  responses: {
    pong: schema.object({
      body: schema.string()
    }),
    hello: schema.object({
      body: schema.string()
    })
  }
});

Thanks

Thanks for checking it out. Feel free to create issues or otherwise provide feedback.

API Docs

Be sure to check out our other TypeScript OSS projects as well.

2.5.1

8 months ago

2.5.0

9 months ago

2.4.0

9 months ago

2.3.5

9 months ago

2.3.0

12 months ago

2.3.2

12 months ago

2.3.1

12 months ago

2.3.4

11 months ago

2.3.3

11 months ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.2

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.5

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.0-alpha.0

2 years ago