• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebSockets Fun...

#1
[eluser]troy_mccormick[/eluser]
Hi everyone. I'm having some trouble with WebSockets, and my Google-Foo seems to be lacking today (and yesterday...). Could I get some fresh eyes to take a look at this for me?

I'm getting the error,

Code:
Uncaught Invalid JSON: ["test",{"message":"Hi","name":"Name"}]

Here is the full client and server code that I have in place:

Server: http://pastebin.com/pvZb9AS0
Client: http://pastebin.com/RxGmS0yJ

Any light that could be shed on this would be greatly appreciated!

Thanks...

#2
[eluser]toopay[/eluser]
One thing for sure, you were missed 'application/json' at Content-Type, in your http(header) response. I use fiddler and maybe you can use that too, to catch whats happening and help you debug your code better whenever you play with http scripting.

#3
[eluser]troy_mccormick[/eluser]
Doesn't seem to make a difference...unfortunately Sad


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.