Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suspiciouslookingowl/vscode-socket.io-emitter
Visual Studio Code extension that allows you to connect to your Socket.io server and emits events.
https://github.com/suspiciouslookingowl/vscode-socket.io-emitter
socket-io vscode vscode-extension
Last synced: 1 day ago
JSON representation
Visual Studio Code extension that allows you to connect to your Socket.io server and emits events.
- Host: GitHub
- URL: https://github.com/suspiciouslookingowl/vscode-socket.io-emitter
- Owner: SuspiciousLookingOwl
- Created: 2020-05-22T20:50:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T19:49:30.000Z (almost 2 years ago)
- Last Synced: 2024-12-01T08:14:32.083Z (about 2 months ago)
- Topics: socket-io, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=vincentjonathan.socket-io-emitter
- Size: 362 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# socket-io-emitter README
`socket-io-emitter` is a simple Visual Studio Code Extension that allows you to connect to a Socket.io server and emits event to the server.
## Event listened on Visual Studio Code
This extension currently listens to the following Visual Studio Code event:
| VSCode Event | Emitted Event | Emitted data |
| ------------------------------------ | ----------------------------- | ---------------------------------------------- |
| `window.onDidChangeActiveTextEditor` | `onDidChangeActiveTextEditor` | `{ fileName, lineCount, fileSize, workspace }` |
| `workspace.onDidSaveTextDocument` | `onDidSaveTextDocument` | `{ fileName, lineCount, fileSize }` |Need other events? [Submit a feature request issue](https://github.com/VincentJonathan/vscode-socket.io-emitter/issues/new/choose)
## Extension Commands
This extension contributes the following commands:
- `socket.connect`: Connect to Socket.io server
- `socket.disconnect`: Disconnect from Socket.io server
- `socket.reconnect`: Reconnect to Socket.io server
- `socket.setToken`: Set token value (emits Authenticate event on change)## Extension Configurations
This extension contributes the following configurations:
- `socket.url`: Socket.io server url with port (e.g. http://example.com:3000 )
- `socket.autoConnect`: Define whether to auto connect to Socket.io server when VSCode is started
- `socket.authenticateEvent`: Event name that will be emitted after you connected to the Socket.io server (sends token)
- `socket.onDidChangeActiveTextEditor`: Event name that will be emitted when active text editor is changed (set to empty if you don't want to emit this event)
- `socket.onDidSaveTextDocument`: Event name that will be emitted when a file is saved (set to empty if you don't want to emit this event)## Known Issues
\-