I'm learning English and you're the first youtuber that I can understand. Just that, a curiosity. Thanks for the video.
@galaxies_dev4 жыл бұрын
Glad to hear that!
@patrickpalomares72572 жыл бұрын
Hi simon, how did you do the "Open Editors" and "Socket server?"
@axrorabduganiyevich66675 жыл бұрын
Woow great video Mr.Simon.
@yoppysantoso42762 жыл бұрын
Hi Simon, I am new with ionic, but your tutorial help me to understand. with sockets, is possible for send / display image or video?
@galaxies_dev2 жыл бұрын
I guess you could send the image blob data through your socket connection, but perhaps having a URL to the image to load from would be easier!
@uzroot5 жыл бұрын
Thank you very much I was expecting this tutorial.
@mpakoenongeneivo5 ай бұрын
please simon when i host my application on heroku, socket io stops working. what can i do to solve that issue.
@SinaAmini-hl1vo3 жыл бұрын
Very very good
@felixsagno69653 жыл бұрын
hello thank you for tutorial, i'm doing something similar to this, so i need help if possible, i have a ionic app that must listen to a port to receveive data from a web app and it has to take that data every time when it comes to the port and store it, and i don't know how to make my ionic app listening to port and receive the data .thank you in advance .
@paragbhide16953 жыл бұрын
Sir. I have build a huge social communication app on android and ios. I have one tense question, will this socket io work successfully on the scale. Even if messages are slow, still will it work successfully in ios and android.
@jaiharshagottumukkala65385 жыл бұрын
Superb tutorial ....
@Akeshma3 жыл бұрын
I'm looking for TCP socket connection in ionic angular.. any help please
@techbuddiesit63304 жыл бұрын
Very good tuts. You are master of ionic.
@brownwolfgaming47732 жыл бұрын
it's possible to using the socket event in service ? to get more clean code 🤔
@galaxies_dev2 жыл бұрын
Yes definitely!
@chiragjoshi34934 жыл бұрын
hey simon great work but i'm getting error while i'm typing socket.username it's saying that proprty username does not exits on type 'Socket' please help me on this
@argelpamintuango19562 жыл бұрын
how possible to make websocket to some part of rest api if application is a .NET app?
@jngomezd4 жыл бұрын
I have one app for clients (APP1), and other for servers (APP2). I want notify "especific" users, about related transactions. Questions: Need I other "server agent" to manage communications? Sockets is the best solution? Fifebase (FCM) apply? ¿Other Suggest?
@Prash33935 жыл бұрын
Thanks Simon
@jorgetawnan4 жыл бұрын
Very good! Thank you very much for your content. In Brazil, the IOnic community is still small. Can I do a real-time CHAT with more than one room?
@galaxies_dev4 жыл бұрын
Yeah I think that should be possible, you just need to join them in your server into the same room with socket!
@tolutronics5 жыл бұрын
Great... Thanks Simon..
@edwardramos29715 жыл бұрын
Nice! Works for me!
@AmitKumar19954 жыл бұрын
Hi Sir, I am creating video calling feature in ionic but I m unable to make call a person when he is not using his phone or app in background. I want to show calling screen with ringtone like whatsapp call, how can do it in ionic ?
@rubentorres5 жыл бұрын
I want to develop a guitar tuner with ionic, how can I achieve it?
@axrorabduganiyevich66675 жыл бұрын
Hi Simon. I have this problem, Can you help me? Refused to load the image 'localhost:8100/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback. localhost/:1 Failed to load resource: the server responded with a status of 404 (Not Found)
@dennisxu77804 жыл бұрын
The problem is that socket needs lots of resources, for example if you have 10000 users using socket, do you know how many resource needed?
@graceamegboh91015 жыл бұрын
hi Simon i am getting error saying: WARNING: This is a simple server for use in testing or debugging Angular applications [ng] locally. It hasn't been reviewed for security issues. [ng] Binding this server to an open connection can result in compromising your application or [ng] computer. Using a different host than the one passed to the "--host" flag might result in [ng] websocket connection issues. You might need to use "--disableHostCheck" if that's the [ng] case. [ng] i 「wds」: Project is running at 0.0.0.0:8100/webpack-dev-server/ [ng] i 「wds」: webpack output is served from / [ng] i 「wds」: 404s will fallback to //index.html
@Modady-games5 жыл бұрын
Welcome Sir, how can Ionic run on more than the Android version
@MissileBoy3 жыл бұрын
Hello, thanks for this tutorial, this is working in a mobile application? I am migrating a web game with a node.js backend (very similar to this backend) to Ionic, but websockets is not working on android phones, I really dont know what i am doing wrong.
@galaxies_dev3 жыл бұрын
It should work, yes. Did you use a secure HTTPS connection?
@MissileBoy3 жыл бұрын
@@galaxies_dev I used HTTPS in production and HTTP in localhost, but looks like definitivaly is a bug on my side as I reproducing the same behavior as a single web page, so is not a mobile app specific issue. I will check again my code, thanks!
@uzroot5 жыл бұрын
Now we should implement one to one conversation and history of chat saving. For having offline messages stored somewhere on server side for example redis or mongodb
@galaxies_dev5 жыл бұрын
Yes you would have to connect a database to your server and save every message that is emitted. Then you can also have a route to load all past messages for a conversation!
@manuelmariscal72865 жыл бұрын
Hey Simon, recently did it but im facing the problem of CORS policy, i did it on Heroku, it's not the first time that i see that (situations on the past) maybe its some stupid thing that i'm forgeting, do you have any idea? Thank you so much
@galaxies_dev5 жыл бұрын
With Node or Express you can easily add the CORS headers to your API using a package. You have to make your server CORS ready, the app can't do this in general!
@rakshay345 жыл бұрын
Hi Simon, I followed the instructions here and it is working like a breeze for me on browser and ios devices. But strangely socket connection is not being established in android devices. Is there a fix for it?
@galaxies_dev5 жыл бұрын
Most likely an issue that your server is not on https!
@kgermando5 жыл бұрын
Great! Thanks you!
@murendeninemaheni43873 жыл бұрын
Do you have anything on this using real database data from an API? How would one integrate it with my rest API
@murendeninemaheni43873 жыл бұрын
POST localhost:3000/socket.io/?EIO=3&transport=polling&t=NRJp-x8 400 (Bad Request) Any help will do. Followed Tut but I run page i get this
@ersaurabher4 жыл бұрын
At which place do I save a message in MySQL using PHP ? I wish to save the message, i know how to do that but I am confused how to do it here, I mean when do I trigger that ?
@galaxies_dev4 жыл бұрын
I would say when there's a new message send from the user (which you can catch in the socket functions before you emit it to a group)!
@ciro7265 жыл бұрын
But if I want to execute not in localhost but on a server online like myserver.com?
@brixylive6064 жыл бұрын
is live streaming possible for socketio?
@galaxies_dev4 жыл бұрын
Hmm I think it could be possible in a native app!
@fatenrhaiem3683 жыл бұрын
Property 'fromEvent' does not exist on type 'Socket'. !!!!
@TheJou10013 жыл бұрын
I couldn't make it work in android device. It works fine at web browser
@chandratumuluri64472 жыл бұрын
Hi Simon, I am using Ionic 6 (Capacitor 4) with ngx-socket-io and I keep getting CORS error (Origin 'capacitor://localhost' not allowed by Access-Control-Allow-Origin) though on the server-side "*" is given for Access-Control-Allow-Origin. Did you face this issue before? Appreciate your help.
@galaxies_dev2 жыл бұрын
Maybe this guide from Ionic helps: ionicframework.com/docs/troubleshooting/cors
@sunilmanipara72735 жыл бұрын
Hii, when i can disconnection internet and again connect then socket connection is not connecting. if you know how to reconnect socket connection then please tell me. thank you!
@galaxies_dev5 жыл бұрын
You can pass a manager object during initialisation where you can specify the disconnect and retry behaviour like described here: github.com/socketio/socket.io-client/blob/master/docs/API.md#new-managerurl-options
@ersaurabher4 жыл бұрын
Hii please call me for custom work @ 9216142737
@pedrocarbon5 жыл бұрын
How can I host the socket.io part?
@galaxies_dev5 жыл бұрын
For example on Heroku, but you can use all kind of hosting for your server if they allow NodeJs environments. But Heroku is my favorite.
@axrorabduganiyevich66675 жыл бұрын
Does this project work in real device?
@galaxies_dev5 жыл бұрын
Yes it should, but of course you need to use the real URL of your server then and not just localhost.
@axrorabduganiyevich66675 жыл бұрын
@@galaxies_dev hm thank you.
@aneeshbhat285 жыл бұрын
super
@vajidali97645 жыл бұрын
Hello team ionic today I am the first time in mac create a new project, Project is serve successful but I got an error to build apk please help Error is : You have been opted out of telemetry. To change this, run: cordova telemetry on. CordovaError: Promise rejected with non-error: 'xcode-select: error: tool \'xcodebuild\' requires Xcode, but active developer directory \'/Library/Developer/CommandLineTools\' is a command line tools instance ' at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:29:15) at process._tickCallback (internal/process/next_tick.js:68:7) [ERROR] An error occurred while running subprocess cordova. cordova build ios exited with exit code 1. Re-running this command with the --verbose flag may provide more information.
@galaxies_dev5 жыл бұрын
Hey, I'm not part of the official Ionic company! But regarding your error, check out this fix: github.com/nodejs/node-gyp/issues/569
@JavierRodriguez-co2mv3 жыл бұрын
'localhost:3001/socket.io/?EIO=3&transport=polling&t=NUh0gaT' from origin 'localhost:8100' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Can you help me please, Mr. Simon
@galaxies_dev3 жыл бұрын
Then you have to add CORS support to your socket server!
@marcelocch3 жыл бұрын
I have the exact same problem :( and adding cors to nodejs server wont fix it
@JavierRodriguez-co2mv3 жыл бұрын
@@marcelocch I had to install a lower version of socket.io
@marcelocch3 жыл бұрын
@@JavierRodriguez-co2mv what version did u install?
@JavierRodriguez-co2mv3 жыл бұрын
@@marcelocch 2.0.0
@aliazzoug49474 жыл бұрын
please try to explain more slowly. It's hard to understand for beginners !
@galaxies_dev4 жыл бұрын
Will do Ali, sorry!
@nmanikiran5 жыл бұрын
Group chat Create a group -> add / invite members A basic Skype clone 🤔