-
Notifications
You must be signed in to change notification settings - Fork 371
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
How do I run this application #118
Comments
Line 20 of client.html, set this to your server.
Run testwebsock.php from your server's command line.
???
Profit.
…On Wed, May 8, 2019 at 11:47 AM areaboy ***@***.***> wrote:
Hi everyone. I just downloaded this amazing application. please how do I
run it or how do I start the server. do I need to install composer or
anything. I just run the client.html in two browser but no realtime chat.
Am new to this. Please help. Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#118>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAB46PRZPRFNJUYNZFPB2M3PUMN5PANCNFSM4HLUIMGA>
.
|
Hello Sir. I have tried as you sugessted. At testwebsock.php, i change port no to then at client line 20 i set have when I cd into the root directory and type testwebsock.php from the command prompt and run the chat app, the two broswer are not communicating via chat I have also tried |
Please paste the output that you see when you run testwebsock.php.
Also, unless you have a reason to restrict your server's listening address
to only be able to listen on the localhost loopback address, I suggest
keeping it at 0.0.0.0. I assume that your next step in figuring out
websockets will be to try to connect from another computer on your network,
and if your server is only listening to local requests, you won't be able
to connect from another computer.
…On Wed, May 8, 2019 at 3:09 PM areaboy ***@***.***> wrote:
Hello Sir. I have tried as you sugessted. At testwebsock.php, i change
port no to
$echo = new echoServer("127.0.0.1","9000");
then at client line 20 i set have
var host = "ws://127.0.0.1:9000"; // SET THIS TO YOUR SERVER
when I cd into the root directory and type *testwebsock.php* from the
command prompt and run the chat app, the two broswer are not communicating
via chat
I have also tried
$echo = new echoServer("127.0.0.1","9000/echobot");
I cannot get it to work Sir. Please can you help me further. Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB46PV6CTBHQLJN5KB2FVLPUNFSJANCNFSM4HLUIMGA>
.
|
Now I leave it at If type testwebsock.php at command prompt, it will just open the the testwebsock.php script if run php testwebsock.php at command prompt. it will display error in the screenshot below I think the issue is the right command for starting the server. Am running php version 7.2.10 |
$echo = new echoServer("0.0.0.0","9000");
should be
$echo = new echoServer("0.0.0.0","9000", 1048576);
Sorry, I don't remember when it was changed. Obviously the example needs to
be updated.
…On Wed, May 8, 2019 at 3:52 PM areaboy ***@***.***> wrote:
Now I leave it at $echo = new echoServer("0.0.0.0","9000");
If type *testwebsock.php* at command prompt, it will just open the the
testwebsock.php script
if run *php testwebsock.php* at command prompt. it will display error in
the screenshot below
[image: screenshot]
<https://user-images.githubusercontent.com/50068759/57413285-796dc100-71eb-11e9-96f8-c6200e5ce5be.png>
I think the issue is the right command for starting the server.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB46PW24MPWRW2DPZKM67TPUNKADANCNFSM4HLUIMGA>
.
|
Three options:
Find the line in your php.ini that says
;extension=php_sockets.dll
and remove the semicolon at the start of that line. I give a good 90%
chance that this will work.
If not, get the latest version of PHP from https://windows.php.net/, and
set this version to be the one pointed to by your PATH environment
variable. Edit its php.ini to enable the sockets extension as above. This
will most definitely work, but I don't offer support on how to install and
update PHP. Try this if you're confident in your abilities, or have a
friend or co-worker who can help you fix it if things go wrong. (It's a
good thing to learn, so I suggest doing this sooner or later, but messing
with the PATH variable could cause problems, so don't do it unless you know
what you're doing, or have someone to help you out.)
Or, the third option is to run a Linux server and use its package
management system to install PHP and the sockets extension. This is well
beyond my scope of support, but is an essential skill for any web developer.
…On Wed, May 8, 2019 at 4:10 PM areaboy ***@***.***> wrote:
I have added the line of code but it shows another error in the screenshot
below
[image: screenshot]
<https://user-images.githubusercontent.com/50068759/57414109-c1daae00-71ee-11e9-8b07-79840a2a902c.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB46PWF6SKY4UGPRC5WXBDPUNMVLANCNFSM4HLUIMGA>
.
|
please Sir, any further help |
to
to
and enable the sockets extension in |
If someone submits a pull request, I'll actually log in to approve it.
(Won't be quick, I've gotta dig my one-time-use tokens out of hiding, as
the U2F dongle I'd had before went through the washing machine a couple too
many times.)
…On Thu, May 9, 2019 at 11:46 AM dan-english ***@***.***> wrote:
websockets.php change
$user = new $this->userClass(uniqid('u'), $socket);
to
$user = new $this->userClass(uniqid('u'), $socket, 1048576);
testwebsock.php change
$echo = new echoServer("0.0.0.0","9000");
to
$echo = new echoServer("0.0.0.0","9000", 1048576);
and enable the sockets extension in php.ini should be enough to get you
up and running (I'd make a PR but lacking perms)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB46PRBZKWIPUIQNWLSIGLPURWPFANCNFSM4HLUIMGA>
.
|
Couldn't push a branch up to create a PR off...regardless that should be enough to get @areaboy up and running. |
Thanks for helping me so far. I discovered that both sent message and Recieved message are appearing on the same senders chatbox. here is the link to the chat files at google drive link Between. Thanks |
@dan-english and @ghedipunk please any more help on the issues above. |
Its working now. It can chat will all connected users now. Thanks alot at Sir Dan-English and at Sir ghedipunk |
And which was the solution for this issue? If am chating from one browser(Chrome), its not reflecting in the other(firefox) and vice versa. I discovered that both sent message and Recieved message are appearing on the same senders chatbox. |
Hi, im having same problem as @davidbarra: "If am chating from one browser(Chrome), its not reflecting in the other(firefox) and vice versa. I discovered that both sent message and Recieved message are appearing on the same senders chatbox. Thanks!!! |
An echo server is not a chat server.
An echo server is just a proof of concept, for developers to use to build
off of for their own applications. Its one and only function is to repeat
exactly what it received, to prove that the connection works.
…On Fri, Oct 25, 2019 at 1:36 PM Lucas Lucas ***@***.***> wrote:
Hi, im having same problem as @davidbarra <https://github.com/davidbarra>:
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#118?email_source=notifications&email_token=AAB46PRBCLX4ABLMP2BV43TQQNKEHA5CNFSM4HLUIMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECJP3DQ#issuecomment-546504078>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB46PVBYJLGGNQNMXC64XLQQNKEHANCNFSM4HLUIMGA>
.
|
Thanks!! |
I found the solution and it was very simple, I don't want to be thankful but it wasn't easier for both of us to tell me this answer?
|
Use a Posix compliant operating system (Linux, or a BSD Unix (including
OSX)).
…On Thu, Aug 5, 2021, 8:57 PM FirpitoEnInternet ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/64078701/128449151-474b72a6-a574-4f3e-8fe6-6808ebf11840.png>
Hi, I'm having this problem when I run the application, can you help me?
pls
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB46PTOKNNZGQRTDJ22W23T3NFSZANCNFSM4HLUIMGA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Hi everyone. I just downloaded this amazing application. please how do I run it or how do I start the server. do I need to install composer or anything. I just run the client.html in two browser but no realtime chat. Am new to this. Please help. Thanks
The text was updated successfully, but these errors were encountered: