Questions tagged [wscat]
10 questions
1
vote
1 answer
How can I pod exec (and run a command) using Kubernetes API?
While using Kubernetes API, I came across this issue where I am not able to pod exec into another pod using the API.
I made sure I am running a pod with a serviceAccount that has correct RBAC permissions (and both pods are in the same namespace). I…

rock'n rolla
- 1,883
- 1
- 13
- 19
1
vote
0 answers
AWS web socket api won't respond to action
This code should respond to allowAccess and declineAccess events by sending connectionId and message to the user who sent the request(CLI).
const AWS = require('aws-sdk');
const ENDPOINT =…

Andrija Gajic
- 314
- 3
- 15
1
vote
0 answers
WebRTC Call throwing a error during hangup
I am implementing a peer-2-peer call with WebRTC but I have encountered an error when leaving the call.
The connection is gone through but when I leave I get an error
The error is saying
connect.otherUser = null;
^
TypeError:…

Timothy Lam 1992
- 15
- 8
1
vote
1 answer
Pass multiple query paramters onConnect Websockets
I need to pass multiple query parameters (QP) to WS URL while connecting.
wscat -c wss://abcd.us-east-1.amazonaws.com/dev/?a=1&b=1
When I try to pass multiple parameters, wscat gets exit with exit code [10] 96027 . However, works perfectly fine…

Praful Bagai
- 16,684
- 50
- 136
- 267
0
votes
0 answers
Connecting to Wscat and having authorization error
I used this to connect:
wscat --connect wss://api.alpaca.markets/stream
then used
{"action": "auth", "key": "key", "secret": "key"}
and got this error:
{"stream":"authorization","data":{"action":"auth","message":"access key verification…
0
votes
0 answers
wscat connection unexpected server response: 403
I'm new to alpaca trading. Ran wscat -c wss://data.alpaca.markets/stream to connect and got error 403. Looks like an authorization thing.
I tried using wscat --auth but got the error The '<' operator is reserved for future use. Please…
0
votes
0 answers
How can I use wscat in a service unit?
I use wscat from a bash script for connecting to a websocket endpoint in a web application with success.
#!/bin/bash
...
wscat -n -c wss://myappserver:2443/mywebapp/websocket/myendpoint?param1=x
...
When I call the same script from a ubuntu systemd…

Harry Ring
- 41
- 4
0
votes
0 answers
how can I pass a json as a command after -x in wscat
I need to use a json as the command after -x in wscat.
however it returns wrong format from the server.
my script is just like this:
#!/usr/bin/env bash
read -p "param1:" param1
read -p "param2:" param2
json=$(cat <<-END
{
"param1":…

ren jia
- 1
- 1
0
votes
1 answer
alpaca data not streaming
I am trying to stream data by using an Alpaca paper trading account on a Windows 10 terminal, but instead of streaming data it returns empty. Does anybody know what I am doing wrong?
note: I have installed wscat by typing npm install -g wscat and i…

pythonlearner123
- 1
- 3
0
votes
1 answer
Different behaviors with 2 different Websocket APIs
this question is a reformulation (and simplification) of a precedent question which doesn't interest the community (Different behaviors with 2 different Websocket APIs but same request).
I am trying to communicate with a server on my local network…

cclst
- 11
- 4