UNPKG

@hyper-fetch/sockets

Version:

Sockets connection for hyper-fetch

69 lines (47 loc) • 3.05 kB
# šŸ›°ļø Hyper Fetch Sockets <p> <a href="https://bettertyped.com/"> <img src="https://custom-icon-badges.demolab.com/static/v1?label=&message=BetterTyped&color=333&logo=BT" /> </a> <a href="https://github.com/BetterTyped/hyper-fetch"> <img src="https://custom-icon-badges.demolab.com/github/stars/BetterTyped/hyper-fetch?logo=star&color=118ab2" /> </a> <a href="https://github.com/BetterTyped/hyper-fetch/blob/main/License.md"> <img src="https://custom-icon-badges.demolab.com/github/license/BetterTyped/hyper-fetch?logo=law&color=yellow" /> </a> <a href="https://www.npmjs.com/package/@hyper-fetch/sockets"> <img src="https://custom-icon-badges.demolab.com/npm/v/@hyper-fetch/sockets.svg?logo=npm&color=e76f51" /> </a> <a href="https://github.com/BetterTyped/hyper-fetch"> <img src="https://custom-icon-badges.demolab.com/badge/typescript-%23007ACC.svg?logo=typescript&logoColor=white" /> </a> <a href="https://www.npmjs.com/package/@hyper-fetch/sockets"> <img src="https://custom-icon-badges.demolab.com/bundlephobia/minzip/@hyper-fetch/sockets?color=64BC4B&logo=package" /> </a> </p> ## About **`Hyper Fetch Sockets`** is a library for handling `web sockets` and `server sent events`. Thanks to it, we get a **neutral layer of control** to which we can easily integrate any available solution for dynamic two-way communication. ## Features šŸ”® **Simple setup** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/sockets/setup) šŸŽÆ **Web Sockets** - [Read more](https://hyperfetch.bettertyped.com/docs/sockets/overview#Websockets) ✨ **Server sent events** - [Read more](https://hyperfetch.bettertyped.com/docs/sockets/overview#Sockets) šŸš€ **Type safe** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/sockets/typescript) šŸŽŠ **SSR Support** - [Read more](https://hyperfetch.bettertyped.com/docs/getting-started/environment) šŸ”‹ **Offline First** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/sockets/offline) šŸ“” **Built-in adapter** - [Read more](https://hyperfetch.bettertyped.com/docs/sockets/adapter) šŸŽŸ **Authentication** - [Read more](https://hyperfetch.bettertyped.com/docs/guides/sockets/authentication) ## Help me keep working on this project ā¤ļø - [Become a Sponsor on GitHub](https://github.com/sponsors/prc5) ## React We have specially created hooks to support sockets. [Check it out](https://hyperfetch.bettertyped.com/react/websockets) ## Sources - #### [Installation](https://hyperfetch.bettertyped.com/docs/getting-started/installation) - #### [Docs](https://hyperfetch.bettertyped.com/docs/sockets/overview) - #### [API](https://hyperfetch.bettertyped.com/api/) - #### [NPM](https://www.npmjs.com/package/@hyper-fetch/sockets) - #### [Guides](https://hyperfetch.bettertyped.com/docs/guides/sockets/setup) ## Other Packages - #### [Hyper Fetch](https://github.com/BetterTyped/hyper-fetch/tree/main/packages/core) - #### [React Hyper Fetch](https://github.com/BetterTyped/hyper-fetch/tree/main/packages/react)