Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing is not working properly. (And Disconnect issues) #29

Open
KimChungHo opened this issue Jan 23, 2018 · 1 comment
Open

Parsing is not working properly. (And Disconnect issues) #29

KimChungHo opened this issue Jan 23, 2018 · 1 comment

Comments

@KimChungHo
Copy link

When I intialize a Socket I need to put JSON data in the PollingUrlAnswer class, but it does not parse correctly and I get an error. I eventually parsed the last part of the string.LastIndexOf ('}') method, but I think the code should be fixed.

Other than that, the Disconnect event does not work. Is this a bug?

Socket intitialize를 할 때 PollingUrlAnswer 클래스에 JSON 데이터를 넣어야 하는데(SocketInitializer.cs 파일의 140번째 정도의 줄) 파싱이 제대로 되지 않아 에러가 납니다. 해당 이슈에 대하여 이미 보고된 것을 봤지만 고쳐지지 않은 것 같습니다.
string.LastIndexOf('}') 메소드로 뒷부분을 잘라내서 결국 파싱을 했습니다만 코드가 고쳐져야 하지 않을까 하는 생각이 듭니다.

다른 내용이지만, Disconnect 이벤트가 동작하지 않는데 혹시 버그인가요?

@Rocher0724
Copy link

ArgumentException: JSON parse error: The document root must not follow by other values.
socket.io.SocketInitializer+c__Iterator0.MoveNext () (at Assets/Plugins/socket.io/SocketInitializer.cs:143)

현재 릴리즈버전 1.1.2 에서 상기 한것과 같은 버그가 있었고 위엣분이 말씀하신대로 해결했습니다 감사합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants