Comments (7)
Hi,
Could you share more info about what are you trying to achieve? The plugin on the stream deck side have a websocket server and accept each vscode instance as a connection.
Each connection has its ID, and that's how I can filter to which vscode instance (websocket clients) should send the messages (whenever the user press a key).
from vscode-deck.
I'm basically trying to recreate the StreamDeck plugin, but for companion instead of the Elgato StreamDeck program. There are no docs anywhere i could find that documents the communication between VSCode and the StreamDeck plugin over WSS, so it's really hard to recreate.
from vscode-deck.
The project were divided into two repositories (which I find very annoying, but when the idea started I built one at the time and i'm lazy to put them together).
The communication it's quite simple, so just take a look at the two repositories and you will be fine.
If you need any assistant send me a ping and I will try to help you.
vscode extension - https://github.com/nicollasricas/vscode-streamdeck
stream deck plugin - https://github.com/nicollasricas/streamdeckvsc
from vscode-deck.
Maybe I misunderstood it, do you wish to integrate my plugin with your companion app?
If that's the case, I don't see how this could work. Unless, if there's a way to send data from a client to another client.
from vscode-deck.
I was mainly thinking of docs that document the communication between the VSCode plugin and the Stream Deck plugin, like what messages are sent, what params, types, etc.
from vscode-deck.
Then just looking at both repositories you will be able to implement it.
Since each side sends/receives messages, they don't know anything about the other side execution.
Each message is just a simple class converted to a string JSON.
from vscode-deck.
Eg.::
-
Execute command message (stream deck side): https://github.com/nicollasricas/streamdeckvsc/blob/master/StreamDeckVSC/Messages/ExecuteCommandMessage.cs
-
Execute command message (vscode side): https://github.com/nicollasricas/vscode-streamdeck/blob/master/src/messages/executeCommandMessage.ts
-
How the "execute command" is sent (stream deck side): https://github.com/nicollasricas/streamdeckvsc/blob/master/StreamDeckVSC/Keys/ExecuteCommandKey.cs
-
How it is received (vscode side): https://github.com/nicollasricas/vscode-streamdeck/blob/master/src/extension.ts#L124
from vscode-deck.
Related Issues (20)
- FR: Select Terminal for command to run in HOT 3
- Remote SSH development breaks extension HOT 1
- Is it possible to use this extension with Touch Portal? HOT 3
- Feature Request: Deactivate StreamDeck / Project Selection via Port HOT 3
- CPU use spikes when any property inspectors are loaded HOT 5
- "Execute Command" help to fill Arguments (JSON) for SSH connection label:"help wanted" HOT 8
- ❓ Is there a streamdeck config for debugging in vscode ? HOT 1
- Send terminal command without enter HOT 1
- Feature Request: Support WSL2 paths for Open Folder HOT 2
- "Unexpected end of JSON input" in console
- Minimap Toggle command deactivates plugin for window HOT 2
- More Documentation on how to use properly HOT 13
- Feature Request: Set to active on most foreground window/active window HOT 1
- Reference active file in terminal command HOT 3
- Cannot load 4.1.6 HOT 2
- Not connecting HOT 7
- How to create custom triggers? HOT 1
- This plugin is a zombie that cannot be killed. HOT 1
- connect to specified ssh host HOT 2
- Will there be a release on the VSX Registry? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-deck.