Skip to content

Added websocket support#11

Open
kriakable wants to merge 8 commits intomasterfrom
websocket-support
Open

Added websocket support#11
kriakable wants to merge 8 commits intomasterfrom
websocket-support

Conversation

@kriakable
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

Released new canary packages:


@github-actions
Copy link
Copy Markdown

Released new canary packages:

@proximaone/stream-client-js 1.2.5-preview.29.0+1dfc426

@github-actions
Copy link
Copy Markdown

Released new canary packages:

@proximaone/stream-client-js 1.2.5-preview.30.0+d4ca1dc

this.clients[endpoint] ??
(this.clients[endpoint] = new StreamDBConsumerClient(endpoint))
this.clients[endpoint.uri] ??
(this.clients[endpoint.uri] = new StreamDBConsumerHttpClient(endpoint.httpUri ?? endpoint.uri)) // todo: throw?
Copy link
Copy Markdown
Contributor Author

@kriakable kriakable Feb 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivanbenko is it better to throw exception here or maybe try to generate that uri by adding '-rest' to the deepest subdomain (streams.buh.proxima.one -> streams-rest.buh.proxima.one)?

@github-actions
Copy link
Copy Markdown

Released new canary packages:

@proximaone/stream-client-js 1.2.5-preview.31.0+42d7f20

@github-actions
Copy link
Copy Markdown

Released new canary packages:

@proximaone/stream-client-js 1.2.5-preview.32.0+48b787c

offset: Offset,
controller?: StreamController
): PausableStream<StreamEvent> {
return PausableStream.create<StreamEvent>((observer, _) => {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivanbenko is it necessary to use PauseState here? I haven't dove deeply into its internals

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, pauseState is important. Client should react to its state. It's being used by Buffered Reader to prevent overconsuming events

@github-actions
Copy link
Copy Markdown

Released new canary packages:

@proximaone/stream-client-js 1.2.5-preview.33.0+2e49849

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 2, 2023

Released new canary packages:

@proximaone/stream-client-js 1.2.7-preview.37.0+625f92d

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 6, 2023

Released new canary packages:

@proximaone/stream-client-js 1.2.7-preview.38.0+20c2d3e

export function getConsumerClientFactory() {
const factories = {};

// todo: can we have both clients on node.js ?
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we will be implementing this in the future it's worth mentioning that websockets are not working properly inside Node.js out of the box for some reason. So websocket client for Node.js won't be only about client creation

@kalabukdima kalabukdima force-pushed the master branch 2 times, most recently from 546c24f to 3e92b0c Compare May 16, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants