I include EasyXDM in a document on my localhost which loads an iframe also on localhost (although I don't believe this matters since I tried it with localhost and a different domain as well). However when I instantiate easyXDM.Socket in the iframe I get the error "Uncaught TypeError: Cannot call method 'replace' of undefined." The call stack is resolveUrl -> prepareTransportStack -> easyXDM.Socket. I think the problem might be that easyXDM thinks the iframe is the host?
This is line 569:
config.isHost = config.isHost || undef(query.xdm_p);
config.isHost is false but undef(query.xdm_p); returns true so config.isHost is set to true. Because config.isHost is set to true the code goes to the else block on 586 which then calls resolveURL, although no URL was passed in originally, and it returns an error.
Have no idea how to approach this.. any ideas??