How do you enable websockets?

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
jcvamp
-


Joined: 01 Jul 2022
Posts: 2

PostPosted: Fri Jul 01, 2022 10:00 pm    Post subject: How do you enable websockets? Reply with quote

I'm using Abyss Web Server on a Windows 10 machine, and I wanted to use a websockets to send UDP messages to a program. However, the webpage returns the error, 'Uncaught Error: Call to undefined function socket_create()', so, presumably, websockets aren't enabled. How would I go about enabling them?

Thanks.
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1295

PostPosted: Sat Jul 02, 2022 7:11 pm    Post subject: Re: How do you enable websockets? Reply with quote

jcvamp wrote:
I'm using Abyss Web Server on a Windows 10 machine, and I wanted to use a websockets to send UDP messages to a program. However, the webpage returns the error, 'Uncaught Error: Call to undefined function socket_create()', so, presumably, websockets aren't enabled. How would I go about enabling them?

Thanks.


The error you are getting is about a missing function in your PHP setup. The function is called socket_create and it is available in the PHP sockets extension. To enable this extension, you must add that line in your php.ini file:

Code:
extension=sockets


By the way, this extension is already enabled in our PHP preconfigured packages available from https://aprelium.com/downloads . So why not using one of them which comes with great deafults instead of wresting with the stock PHP setup from PHP's Web site?

As a side note, socket_create() as a call has nothing to do with Websockets. It's just dealing plain old sockets. :)
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
jcvamp
-


Joined: 01 Jul 2022
Posts: 2

PostPosted: Sun Jul 10, 2022 12:09 am    Post subject: Re: How do you enable websockets? Reply with quote

admin wrote:
The error you are getting is about a missing function in your PHP setup. The function is called socket_create and it is available in the PHP sockets extension. To enable this extension, you must add that line in your php.ini file:

Code:
extension=sockets


By the way, this extension is already enabled in our PHP preconfigured packages available from https://aprelium.com/downloads . So why not using one of them which comes with great deafults instead of wresting with the stock PHP setup from PHP's Web site?

As a side note, socket_create() as a call has nothing to do with Websockets. It's just dealing plain old sockets. :)


Thank you.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group