Skip to content

Can't get ssid #9

@iThanh

Description

@iThanh

url = [[NSURL alloc] initWithString:@"http://localhost:3000"];

socket = [[VPSocketIOClient alloc] init:url withConfig:@{@"log": @false}];

[socket on:@"connect" callback:^(NSArray* data, VPSocketAckEmitter* ack) {
NSLog(@"socket connected: %@", [self->socket ssid]);
}];

But Log window show: socket connected: (null)
And urlRequest show: "<CFHTTPMessageRef 0x28365d5c0(0x28365d5d0)> { GET request, url ws://localhost:3000/socket.io/?transport=websocket&sid=vEquHExR-HYULOyPAAAE }"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions