Web socket implementation php on remote server -


i want start project of web-based chatting app, i've looked on internet , found out there's 2 solutions other ajax, long-polling , web-socket.

my problem lies web-socket tutorials showing me how on localhost, although own , plan on uploading on remote server bought online.

is possible web socket on remote server? or should stick long polling?

[edit:] more clarification:

this turtorial example requires running daemon script possible create such script on remote servers hostgator?

thank you, appreciate help.

it's recommended make use of websocket's in such cases , instead of pulling out data ajax script, can surely host websocket in hosting service if allows http port extension allow websocket apart http. having best performance , full control of setup need "your own" server.

today there huge amount of virtual server providers means full control on ip physical server still shared between many clients, meaning cheaper prices , more flexibility.

i recommend utilizing free tier program @ amazon ec2, can resign after free period. , have many geographical locations choose from.

you can find many more alternatives suits needs on webhosting talk forum

if want use websocket server can start , stop @ rather recommend cloud solution. it's cheap , lets interact server directly, impossible more traditional hosting providers. i've used amazon web services myself, both have free tier can use build , test websocket application. there many more providers, have @ paas services nodejitsu. depends on specific technologies want use guess.

(note: aws lets ssh instance , can use platform/technology want while gae web based , limited go, java , python. doesn't mean aws better, again depends on case.)


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -