Skip to main content

Websocket plugin for httpie

Project description

httpie-websockets

PyPI version License Static Badge PyPI - Downloads

Home: https://github.com/belingud/httpie-websockets

httpie-websockets is an HTTPie CLI plugin that adds WebSocket support to the HTTPie command line.

Features

  • WebSocket Support: Seamlessly connect to WebSocket servers using the familiar HTTPie command line interface.
  • Bidirectional Communication: Send and receive messages in real-time.
  • Secure Connections: Supports both ws:// and wss:// protocols.
  • Easy Integration: Simple installation and usage within the HTTPie environment.

Install

You can install by httpie plugins command:

httpie plugins install httpie-websockets

or use pip in the same environment with httpie

pip install httpie-websockets

Usage

After install this plugin, just pass websocket url to http command.

http ws://localhost:8000/ws

This allows HTTPie to interact with WebSocket servers directly from the command line.

Example:

$ http ws://localhost:8877
> ws://localhost:8877
Type a message and press enter to send it
Type 'exit' to close the connection

Uninstall

If you want to uninstall this plugin, use the same way when you install.

Installed by httpie command, uninstall by

httpie plugins uninstall httpie-websockets

Installed by pip command, uninstall by

pip uninstall httpie-websockets

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpie_websockets-0.3.0.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

httpie_websockets-0.3.0-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page