Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket 0.1.1 #32

Merged
merged 63 commits into from
Dec 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
5427701
feat: Get-WebSocket -TimeOut ( Fixes #23 )
Nov 28, 2024
f79d058
feat: Get-WebSocket -TimeOut ( Fixes #23 )
Nov 28, 2024
7ceadfa
feat: Get-WebSocket -TimeOut ( Fixes #23 )
Nov 28, 2024
102fc27
feat: Get-WebSocket -TimeOut ( Fixes #23 )
Nov 28, 2024
3515639
feat: Get-WebSocket -TimeOut ( Fixes #23 )
Nov 28, 2024
3c8b30d
feat: Get-WebSocket -TimeOut ( Fixes #23 )
Nov 28, 2024
b1b6f74
feat: Get-WebSocket -Maximum ( Fixes #22 )
Nov 28, 2024
3cad8eb
feat: Get-WebSocket -Maximum ( Fixes #22 )
Nov 28, 2024
e2382f6
feat: Get-WebSocket -Maximum ( Fixes #22 )
Nov 28, 2024
5b92da4
feat: Get-WebSocket -Maximum ( Fixes #22 )
Nov 28, 2024
3fd880e
feat: WebSocket action ( Fixes #24 )
Nov 28, 2024
840680e
feat: WebSocket action ( Fixes #24 )
Nov 28, 2024
d01a7ff
feat: WebSocket action ( Fixes #24 )
Nov 28, 2024
1c91db5
feat: WebSocket tests ( Fixes #25 )
Nov 28, 2024
39c4434
feat: WebSocket tests ( Fixes #25 )
Nov 28, 2024
81a4f52
feat: WebSocket tests ( Fixes #25 )
Nov 28, 2024
de48130
feat: WebSocket Container starting .WebSocket files ( Fixes #26 )
Nov 28, 2024
b32e74a
docs: Generating WebSocket README with PipeScript ( Fixes #27 )
Nov 30, 2024
ccda061
docs: Generating WebSocket README with PipeScript ( Fixes #27 )
Nov 30, 2024
5fd644b
docs: Generating WebSocket README with PipeScript ( Fixes #27 )
Nov 30, 2024
0f10ff8
docs: Generating WebSocket README with PipeScript ( Fixes #27 )
Nov 30, 2024
2c1f9d9
docs: Generating WebSocket README with PipeScript ( Fixes #27 )
Nov 30, 2024
72e72a0
docs: Generating WebSocket README with PipeScript ( Fixes #27 )
Nov 30, 2024
c49d8e8
docs: Generating WebSocket README with PipeScript ( Fixes #27 )
Nov 30, 2024
e9d5817
docs: More Get-WebSocket examples ( Fixes #27 )
Nov 30, 2024
b0b979c
docs: More Get-WebSocket examples ( Fixes #27 )
Nov 30, 2024
3fe73fd
docs: More Get-WebSocket examples ( Fixes #27 )
Nov 30, 2024
2597ccc
docs: More Get-WebSocket examples ( Fixes #27 )
Nov 30, 2024
6d93bcf
docs: More Get-WebSocket examples ( Fixes #27 )
Nov 30, 2024
1ed7496
docs: More Get-WebSocket examples ( Fixes #27 )
Nov 30, 2024
de0cede
docs: More Get-WebSocket examples ( Fixes #27 )
Nov 30, 2024
b11e8ee
docs: Get-WebSocket aliasing ( Fixes #28 )
Nov 30, 2024
d525f28
docs: Get-WebSocket aliasing ( Fixes #28 )
Nov 30, 2024
55ca843
docs: Get-WebSocket aliasing ( Fixes #28 )
Nov 30, 2024
df9ebb4
feat: Get-WebSocket -WatchFor ( Fixes #29 )
Dec 4, 2024
917fa5b
feat: Get-WebSocket -WatchFor ( Fixes #29 )
Dec 4, 2024
9734a05
feat: Get-WebSocket -WatchFor ( Fixes #29 )
Dec 4, 2024
a8ae39b
feat: Get-WebSocket -WatchFor ( Fixes #29 )
Dec 4, 2024
df5c904
feat: Get-WebSocket -WatchFor ( Fixes #29 )
Dec 4, 2024
675cdd6
feat: Get-WebSocket -WatchFor ( Fixes #29 )
Dec 4, 2024
0957e7b
feat: Get-WebSocket -WatchFor ( Fixes #29 )
Dec 4, 2024
ced404e
feat: Get-WebSocket -WatchFor ( Fixes #29 )
Dec 4, 2024
5758738
feat: Get-WebSocket -WatchFor ( Fixes #29 )
Dec 4, 2024
a34e862
feat: Get-WebSocket -RawText ( Fixes #30 )
Dec 4, 2024
de0d484
feat: Get-WebSocket -RawText ( Fixes #30 )
Dec 4, 2024
03883c9
feat: Get-WebSocket -RawText ( Fixes #30 )
Dec 4, 2024
62176f2
feat: Get-WebSocket -RawText ( Fixes #30 )
Dec 4, 2024
b00340c
feat: Get-WebSocket -Binary ( Fixes #31 )
Dec 4, 2024
d967dbd
feat: Get-WebSocket -Binary ( Fixes #31 )
Dec 4, 2024
a1e36f3
feat: Get-WebSocket -Binary ( Fixes #31 )
Dec 4, 2024
cb2ec59
feat: Get-WebSocket -Binary ( Fixes #31 )
Dec 4, 2024
e9572ae
feat: Sponsorship Support ( Fixes #14 )
Dec 4, 2024
2ba3410
feat: Get-WebSocket -Binary ( Fixes #31 )
Dec 4, 2024
4f5d359
feat: Get-WebSocket -Binary ( Fixes #31 )
Dec 4, 2024
7ef90bc
feat: Get-WebSocket -Binary ( Fixes #31 )
Dec 4, 2024
71e97dc
feat: Get-WebSocket -Binary ( Fixes #31 )
Dec 4, 2024
94e2476
feat: Get-WebSocket -Binary ( Fixes #31 )
Dec 4, 2024
249dfe8
feat: Get-WebSocket -Binary ( Fixes #31 )
Dec 4, 2024
55e4480
release: WebSocket 0.1.1
Dec 4, 2024
9d004d8
release: WebSocket 0.1.1
Dec 4, 2024
a4f1cb5
release: WebSocket 0.1.1
Dec 4, 2024
5a1e16c
release: WebSocket 0.1.1
Dec 4, 2024
0a303b7
release: WebSocket 0.1.1
Dec 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: Generating WebSocket README with PipeScript ( Fixes #27 )
  • Loading branch information
StartAutomating authored and StartAutomating committed Nov 30, 2024
commit 5fd644b39d78156b73aedb21aaa7d23db832ed60
67 changes: 66 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ It has a single command: Get-WebSocket.

Because `Get` is the default verb in PowerShell, you can just call it `WebSocket`.

## WebSocket Container

You can use the WebSocket module within a container:

~~~powershell
docker pull ghcr.io/powershellweb/websocket
docker run -it ghcr.io/powershellweb/websocket
~~~

### Installing and Importing

Expand All @@ -30,4 +38,61 @@ To connect to a websocket and start listening for results, use [Get-WebSocket](G
websocket wss://jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Watch
~~~

To stop watching a websocket, simply stop the background job.
To stop watching a websocket, simply stop the background job.

### More Examples

#### Get-WebSocket Example 1

~~~powershell
# Create a WebSocket job that connects to a WebSocket and outputs the results.
Get-WebSocket -WebSocketUri "wss://localhost:9669"
~~~
#### Get-WebSocket Example 2

~~~powershell
# Get is the default verb, so we can just say WebSocket.
websocket wss://jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post
~~~
#### Get-WebSocket Example 3

~~~powershell
websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail |
Foreach-Object {
$in = $_
if ($in.commit.record.text -match '[\p{IsHighSurrogates}\p{IsLowSurrogates}]+') {
Write-Host $matches.0 -NoNewline
}
}
~~~
#### Get-WebSocket Example 4

~~~powershell
$emojiPattern = '[\p{IsHighSurrogates}\p{IsLowSurrogates}\p{IsVariationSelectors}\p{IsCombiningHalfMarks}]+)'
websocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail |
Foreach-Object {
$in = $_
$spacing = (' ' * (Get-Random -Minimum 0 -Maximum 7))
if ($in.commit.record.text -match "(?>(?:$emojiPattern|\#\w+)") {
$match = $matches.0
Write-Host $spacing,$match,$spacing -NoNewline
}
}
~~~
#### Get-WebSocket Example 5

~~~powershell
websocket wss://jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Watch |
Where-Object {
$_.commit.record.embed.'$type' -eq 'app.bsky.embed.external'
} |
Foreach-Object {
$_.commit.record.embed.external.uri
}
~~~
#### Get-WebSocket Example 6

~~~powershell

~~~