Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

8 years ago by AndrewMast

I am using this (Downloaded) and I have ejecta.include('socket.io.1.0.6.js'); in my index.js.

I am getting this error: TypeError: undefined is not an object (evaluating 'insertAt.parentNode') at line 2511 in socket.io.1.0.6.js

8 years ago by Joncom

Do sockets work with Ejecta?

Edit 1:

Someone was having a similar issue recently:
http://stackoverflow.com/questions/35284038/using-socket-io-client-with-ejecta

Edit 2:

That same someone had a discussion with Dominic here that seems to explain this issue in detail.

8 years ago by AndrewMast

Thanks! I will have a look into those!

8 years ago by AndrewMast

I am getting this error after doing what she did with the withCredentials:

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.

How do I do this?

8 years ago by Joncom

Quote from AndrewMast
I am getting this error after doing what she did with the withCredentials:

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.

How do I do this?

What have you tried so far? Info.plist is a file you edit with Xcode. Ejecta documentation talks about this file a few times.

8 years ago by AndrewMast

I know what and where the Info.plist is, it's just I don't know what to do to make temporary exceptions.

8 years ago by Joncom

Google is your friend man.

I googled "app transport security info.plist", and the second site suggests this:

Adding the following to your Info.plist will disable ATS

<key>NSAppTransportSecurity</key>  
<dict>  
    <key>NSAllowsArbitraryLoads</key><true/>  
</dict>  

8 years ago by AndrewMast

Oops. I forgot about Google! :)

Thanks!

-Andrew

8 years ago by AndrewMast

That fixed it! Thanks!

-Andrew
Page 1 of 1
« first « previous next › last »