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

added support for websocket clients #1332

Merged
merged 6 commits into from
Dec 2, 2015
Merged

Conversation

Kemonozume
Copy link
Contributor

added ws/wss to the URL package
made changes to the Frame struct and Websocket class to allow it to be
used as a server and client.

kemo added 2 commits November 9, 2015 20:41
added ws/wss to the URL package
made changes to the Frame struct  and Websocket class to allow it to be
used as a server and client.
@Kemonozume
Copy link
Contributor Author

The ping/pong messages work properly, kinda missed the debug messages.
Im not sure how to replace the auto gen = Random(unpredictableSeed); with the secure RNG from vibe.crypto.cryptorand.

});

auto key = "sec-websocket-accept" in res.headers;
assert(key, answerKey);
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't want an assert here, rather an enforce.

@s-ludwig
Copy link
Member

s-ludwig commented Dec 2, 2015

Thanks @Kemonozume, I think this looks good to merge now.

I'll also add a basic test project that sends a few messages between the client and server.

s-ludwig added a commit that referenced this pull request Dec 2, 2015
added support for websocket clients
@s-ludwig s-ludwig merged commit 2babc54 into vibe-d:master Dec 2, 2015
s-ludwig added a commit that referenced this pull request Dec 2, 2015
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.

3 participants