![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
ms-rabbit-cliente
Advanced tools
A progressive Node.js framework for building efficient and scalable server-side applications.
Paquete de Conexion para interceptar solicitudes Http y generar broadcast de solicitudes por el servicio de rabbitMQ
Instalacion del paquete
npm i ms-rabbit-cliente
Configuracion de Paquete en el archivo app.module.ts
import {AppModuleRabbitClient} from 'ms-rabbit-cliente'
@Module({
imports: [
AppModuleRabbitClient.register(),
],
controllers: [],
providers: [],
})
export class AppModule {}
Configuracion de Paquete en el archivo my.montroller.ts
import { DatapassInterceptor } from 'ms-rabbit-cliente'
@Get('/my-rest-api')
@SetMetadata("data-rabbit", {virtualHost:"server_client"})
@UseInterceptors(RabbitInterceptor)
async myRestApi(@Res({}) res) {
try {
const getResponse = await this.appService.myService()
return getResponse
} catch (error) {
return res.status(HttpStatus.BAD_REQUEST).json(error);
}
}
Descripcion de los campos en "data-cache"
Propiedad | Valor | Descripcion |
---|---|---|
virtualHost | String (null) | Host Virtual donde creara una conexion, si este no existe lo creara automaticamete campo obligatorio |
sendAll | Boolean (true) | TRUE si se enviara a todos los queues dentro del virtualHost |
specifiedClient | String (null) | Si sendAll se establece en FALSO se debera ingresar de manera obligada el queue unico del cliente |
Configuracion en la solicitud HTTP si se utilizara el interceptor
curl --location 'https://my-rest-api.com/rest-api-two?queue="queueUnique"
Se pueden utilizar el servicio
Debe realizar la configuracion de Paquete en su archivo my.service.ts
import { RabbitServiceClient } from 'ms-rabbit-cliente';
@Injectable()
export class AppService {
constructor(
private rabbitServiceClient:RabbitServiceClient,
){}
async getRestApiTWo():Promise<Observable<AxiosResponse<any[]>>>{
try {
this.rabbitServiceClient.sendDataVirtualHost({virtualHost:"server_client",sendAll:true},"queueUnique")
} catch (error) {
throw error
}
}
}
Descripcion de los objecto para envio de datos
Propiedad | Valor | Descripcion |
---|---|---|
virtualHost | String (null) | Host Virtual donde creara una conexion, si este no existe lo creara automaticamete campo obligatorio |
sendAll | Boolean (true) | TRUE si se enviara a todos los queues dentro del virtualHost |
specifiedClient | String (null) | Si sendAll se establece en FALSO se debera ingresar de manera obligada el queue unico del cliente |
queueUnique Se recomienda colocar algun identificador unico de usuario o de conexion del cliente Vue
FAQs
Unknown package
The npm package ms-rabbit-cliente receives a total of 1 weekly downloads. As such, ms-rabbit-cliente popularity was classified as not popular.
We found that ms-rabbit-cliente demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.