Skip to content

Commit

Permalink
fix: remove redis export from root
Browse files Browse the repository at this point in the history
Closes #4
  • Loading branch information
RomainLanz committed Mar 8, 2024
1 parent c319b6a commit 4451758
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ Transmit supports syncing events across multiple servers or instances using a tr
```ts
// config/transmit.ts
import env from '#start/env'
import { defineConfig, redis } from '@adonisjs/transmit'
import { defineConfig } from '@adonisjs/transmit'
import { redis } from '@adonisjs/transmit/transports'

export default defineConfig({
transport: {
Expand All @@ -125,6 +126,9 @@ export default defineConfig({
})
```

> [!NOTE]
> Ensure to have `ioredis` installed when using the `redis` driver.
# Ping

Transmit supports pinging the client to keep the connection alive. You can enable pinging by changing the configuration.
Expand Down
1 change: 0 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ export { configure } from './configure.js'
export { Transmit } from './src/transmit.js'
export { defineConfig } from './src/define_config.js'
export { stubsRoot } from './stubs/main.js'
export { redis } from '@rlanz/bus/drivers/redis'
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
],
"exports": {
".": "./build/index.js",
"./transports": "./build/transports.js",
"./transmit_provider": "./build/providers/transmit_provider.js",
"./services/main": "./build/services/transmit.js",
"./types": "./build/src/types/main.js"
Expand Down
10 changes: 10 additions & 0 deletions transports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* @adonisjs/transmit
*
* (c) AdonisJS
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

export { redis } from '@rlanz/bus/drivers/redis'

0 comments on commit 4451758

Please sign in to comment.