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

Websockets? #7676

Closed
Sammaye opened this issue Mar 11, 2015 · 6 comments
Closed

Websockets? #7676

Sammaye opened this issue Mar 11, 2015 · 6 comments

Comments

@Sammaye
Copy link

Sammaye commented Mar 11, 2015

I am still new to this subject so forgive any ignorance I possess.

Has Yii2 had any thoughts on accepting the websocket protocol?

I have found a number of projects in PHP like: http://socketo.me/ but of course it would mean re-implementing a bit of logic into that other framework and running effectively two distinct frameworks and composer projects side by side.

I found this on a Google search http://www.yiiframework.com/forum/index.php/topic/40980-non-http-communication/ but seems a little inconclusive.

@antonkomarev
Copy link

That's not a best idea to use PHP as websocket server. But I'll give you an additional link for websocket PHP implementations: http://daemon.io/

@samdark
Copy link
Member

samdark commented Mar 11, 2015

And another link: http://reactphp.org/

@Sammaye
Copy link
Author

Sammaye commented Mar 12, 2015

I did actually see a self contained node.js server which could take PHP messages, though I cannot seem to find it again and didn't bookmark it. Nice links btw, didn't know about those.

So this is agreed that this is mostly an external thang?

@antonkomarev
Copy link

Yep, as I researched this question before, there are different implementations with Yii on GitHub exists.

Yii2 extension (developer recommend to not use it and use daemon.io):

And another one implementation with Yii1:

@Sammaye
Copy link
Author

Sammaye commented Mar 13, 2015

I saw that first link as well, but to say it hasn't really got any documentation attached is an understatement so I didn't really try too hard with that one.

The second one is good, though of course it is Yii1

@antonkomarev
Copy link

I'd like to see more researches of websocket topic on the Yii cookbook, because it will be more and more popular.

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

No branches or pull requests

3 participants