Skip to content

Commit 7ceadfa

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Get-WebSocket -TimeOut ( Fixes #23 )
1 parent f79d058 commit 7ceadfa

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/_data/Help/Get-WebSocket.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,17 @@
4848
{
4949
"Title": "EXAMPLE 4",
5050
"Markdown": "",
51-
"Code": "$emojiPattern = '[\\p{IsHighSurrogates}\\p{IsLowSurrogates}\\p{IsVariationSelectors}\\p{IsCombiningHalfMarks}]+)'\nwebsocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail |\n Foreach-Object {\n $in = $_\n if ($in.commit.record.text -match \"(?>(?:$emojiPattern|\\#\\w+)\") {\n Write-Host $matches.0 -NoNewline\n }\n }"
51+
"Code": "$emojiPattern = '[\\p{IsHighSurrogates}\\p{IsLowSurrogates}\\p{IsVariationSelectors}\\p{IsCombiningHalfMarks}]+)'\nwebsocket jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Tail |\n Foreach-Object {\n $in = $_\n $spacing = (' ' * (Get-Random -Minimum 0 -Maximum 7))\n if ($in.commit.record.text -match \"(?>(?:$emojiPattern|\\#\\w+)\") {\n $match = $matches.0 \n Write-Host $spacing,$match,$spacing -NoNewline\n }\n }"
52+
},
53+
{
54+
"Title": "EXAMPLE 5",
55+
"Markdown": "",
56+
"Code": "websocket wss://jetstream2.us-east.bsky.network/subscribe?wantedCollections=app.bsky.feed.post -Watch |\n Where-Object {\n $_.commit.record.embed.'$type' -eq 'app.bsky.embed.external'\n } |\n Foreach-Object {\n $_.commit.record.embed.external.uri\n }"
57+
},
58+
{
59+
"Title": "EXAMPLE 6",
60+
"Markdown": "",
61+
"Code": ""
5262
}
5363
]
5464
}

0 commit comments

Comments
 (0)