0

From the server to the client.

I've looked at the chat example and I can't tell what I'm doing differently that would affect that. What would cause this behavior?

2
  • Are you sure? Sometimes you will find that a string gets represented as an array of characters. For example you can for loop over it. And I've also found debuggers sometimes show an array of characters instead of a string. This might not be a problem with socketio but instead with your analysis tool. Commented Mar 8, 2011 at 19:05
  • I've tried stepping through the javascript in the Chrome debugger in both the chat example and my code. I see an array of chars for my code and a string for the chat example. Commented Mar 8, 2011 at 19:12

1 Answer 1

1

Turns out that I was sending it an array of chars. My bad.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.