2.2.5 • Published 1 month ago

yaschema-ws-api v2.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month 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.2.5

1 month ago

2.2.4

2 months ago

2.2.2

4 months ago

2.2.1

4 months ago

2.2.0

5 months ago

2.1.5

5 months ago

2.1.2

11 months ago

2.1.1

11 months ago

2.1.4

7 months ago

2.1.3

11 months ago

2.1.0

11 months ago

2.0.0

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.0-alpha.0

1 year ago