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

demo里面socket初始化方法中的config字典少个逗号~~ #1

Open
Fish1992 opened this issue Oct 11, 2017 · 5 comments
Open

demo里面socket初始化方法中的config字典少个逗号~~ #1

Fish1992 opened this issue Oct 11, 2017 · 5 comments
Assignees

Comments

@Fish1992
Copy link

No description provided.

@vasily-popov
Copy link
Owner

Hi @Fish1992 , can you explain the issue. Do you need more params in config for demo?

@Fish1992
Copy link
Author

@Fish1992
Copy link
Author

i tried to set the namespace in config such as

socket = [[VPSocketIOClient alloc] init:[NSURL URLWithString:urlString]
withConfig:@{@"log": @yES,
@"nsp":@"/chatroom/",
@"path":@"/websocket/",
@"logger":logger
}];

but it can't establish to chatroom server, can you give a demo about namespace please

@vasily-popov vasily-popov self-assigned this Oct 12, 2017
@vasily-popov
Copy link
Owner

@Fish1992,

are you sure that you path is "/websocket" ? By default it's "/socket.io/".

can you show logs?

also tou can play with poliing and websocket params
//@"forcePolling": @yES,
//@"forceWebsockets":@yES

vasily-popov added a commit that referenced this issue Oct 12, 2017
@vasily-popov
Copy link
Owner

@Fish1992

you can try with test server from here https://github.com/nuclearace/socket.io-client-swift-example/tree/master/server

but it does not use namespace and works with default params.

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

No branches or pull requests

2 participants