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

feat: add ws client adapter #319

Merged
merged 28 commits into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
14f0554
feat: poc for ws client
Souvikns May 29, 2022
3d4329e
refactor: better ws example
Souvikns Jun 16, 2022
8d1ab0c
refactor: lint fix
Souvikns Jun 23, 2022
3d8ae26
feat: connect to ws servers
Souvikns Jun 23, 2022
4bfd839
feat: connect multiple channels
Souvikns Jun 28, 2022
4aea383
feat: create multiple ws clients for channels
Souvikns Jul 13, 2022
180f999
chore: lint fix
Souvikns Jul 13, 2022
025fa03
feat: change client priority
Souvikns Jul 14, 2022
2e83465
feat: sending message to ws client
Souvikns Aug 8, 2022
e727ef1
feat: new example
Souvikns Aug 22, 2022
3e9c039
Merge branch 'master' into ws-client
fmvilas Aug 22, 2022
d70118a
Remove .glee folders
fmvilas Aug 22, 2022
d6082cb
Fix bugs in lifecycle events
fmvilas Aug 22, 2022
17b0833
Fix compilation error on MQTT adapter
fmvilas Aug 22, 2022
6f33a24
Fix lifecycle function on crypto-websockets example
fmvilas Aug 22, 2022
d42c1f7
Add .glee directories to .gitignore
fmvilas Aug 22, 2022
621c34a
feat: finish crypto-websockets example & remove ws-server
Souvikns Aug 23, 2022
18e274a
refactor: lint fixes
Souvikns Aug 23, 2022
a54b960
refactor: clean dummy example
Souvikns Aug 24, 2022
8f97fdc
feat: add header and query support
Souvikns Aug 31, 2022
926f94e
refactor: lint fix
Souvikns Aug 31, 2022
2175485
feat: sending header and query values
Souvikns Sep 19, 2022
bb245c8
feat: add support for header and query values
Souvikns Sep 26, 2022
e754559
refactor: add requested changes
Souvikns Oct 12, 2022
4f56491
Merge remote-tracking branch 'upstream/master' into ws-client
Souvikns Nov 25, 2022
71e9399
feat: add x-remoteServers support
Souvikns Dec 1, 2022
7ccfba7
feat: authentication and query support
Souvikns Dec 1, 2022
cc9753c
Merge remote-tracking branch 'upstream/master' into ws-client
Souvikns Dec 2, 2022
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
17 changes: 17 additions & 0 deletions examples/dummy/asyncapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,21 @@ servers:
websockets:
url: ws://localhost:3005/ws
protocol: ws
x-kind: local

clientWs:
Souvikns marked this conversation as resolved.
Show resolved Hide resolved
url: ws://localhost:4000
protocol: ws
x-kind: remote
channels:
testClient:
Souvikns marked this conversation as resolved.
Show resolved Hide resolved
bindings:
ws:
bindingVersion: 0.1.0
subscribe:
operationId: testClient
message:
$ref: '#/components/messages/testWsMessage'
user/signedup:
bindings:
ws:
Expand Down Expand Up @@ -60,6 +74,9 @@ components:
X509Certificate:
type: X509
messages:
testWsMessage:
payload:
type: string
UserSignedUp:
payload:
type: object
Expand Down
9 changes: 9 additions & 0 deletions examples/dummy/functions/testClient.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default async function (event) {
console.log(event.payload);
return {
send: [{
server: 'clientWs',
payload: event.payload
}]
}
}
Loading