Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Tags in title (http://meta.stackexchange.com/q/19190).
Source Link
jww
  • 103.6k
  • 107
  • 453
  • 975

I am working with iOS 8 and Swift. I want to use the official socket.io client but for some reason it does not attempt to connect. I followed the example given here: https://github.com/socketio/socket.io-client-swift

let socket = SocketIOClient(socketURL: "\(CurrentConfiguration.serverURL)") //url = "http://x.x.x.x:3000" socket.reconnects = true socket.reconnectWait = 10 socket.nsp = "/messagelist" // Connect socket.connect() socket.onAny {println("got event: \($0.event) with items \($0.items)")} //added this after reading issues on github to at least log anything socket.on("connect") {data, ack in println("socket connected") } socket.on("error") {data in println("socket ERROR") println(data) } 
let socket = SocketIOClient(socketURL: "\(CurrentConfiguration.serverURL)") socket.reconnects = true socket.reconnectWait = 10 socket.nsp = "/messagelist" // Connect socket.connect() socket.onAny {println("got event: \($0.event) with items \($0.items)")} socket.on("connect") {data, ack in println("socket connected") } socket.on("error") {data in println("socket ERROR") println(data) } 

canCan anyone confirm this? Is this a version Problemproblem or maybe related to Swift 1.2?

On the server side i cant even recognize a connection attempt. The variable serverURL is the same as i had before, using a different library. and

I am working with iOS 8 and Swift. I want to use the official socket.io client but for some reason it does not attempt to connect. I followed the example given here: https://github.com/socketio/socket.io-client-swift

let socket = SocketIOClient(socketURL: "\(CurrentConfiguration.serverURL)") //url = "http://x.x.x.x:3000" socket.reconnects = true socket.reconnectWait = 10 socket.nsp = "/messagelist" // Connect socket.connect() socket.onAny {println("got event: \($0.event) with items \($0.items)")} //added this after reading issues on github to at least log anything socket.on("connect") {data, ack in println("socket connected") } socket.on("error") {data in println("socket ERROR") println(data) } 

can anyone confirm this? Is this a version Problem or maybe related to Swift 1.2?

On the server side i cant even recognize a connection attempt. The variable serverURL is the same as i had before, using a different library.

I am working with iOS 8 and Swift. I want to use the official socket.io client but for some reason it does not attempt to connect. I followed the example given here: https://github.com/socketio/socket.io-client-swift

let socket = SocketIOClient(socketURL: "\(CurrentConfiguration.serverURL)") socket.reconnects = true socket.reconnectWait = 10 socket.nsp = "/messagelist" // Connect socket.connect() socket.onAny {println("got event: \($0.event) with items \($0.items)")} socket.on("connect") {data, ack in println("socket connected") } socket.on("error") {data in println("socket ERROR") println(data) } 

Can anyone confirm this? Is this a version problem or maybe related to Swift 1.2?

On the server side i cant even recognize a connection attempt. The variable serverURL is the same as i had before and

added 23 characters in body
Source Link
longbow
  • 1.6k
  • 1
  • 17
  • 40

I am working with iOS 8 and Swift. I want to use the official socket.io client but for some reason it does not attempt to connect. I followed the example given here: https://github.com/socketio/socket.io-client-swift

let socket = SocketIOClient(socketURL: "\(CurrentConfiguration.serverURL)") //url = "http://x.x.x.x:3000" socket.reconnects = true socket.reconnectWait = 10 socket.nsp = "/messagelist" // Connect socket.connect() socket.onAny {println("got event: \($0.event) with items \($0.items)")} //added this after reading issues on github to at least log anything socket.on("connect") {data, ack in println("socket connected") } socket.on("error") {data in println("socket ERROR") println(data) } 

can anyone confirm this? Is this a version Problem or maybe related to Swift 1.2?

On the server side i cant even recognize a connection attempt. The variable serverURL is the same as i had before and, using a different library.

I am working with iOS 8 and Swift. I want to use the official socket.io client but for some reason it does not attempt to connect. I followed the example given here: https://github.com/socketio/socket.io-client-swift

let socket = SocketIOClient(socketURL: "\(CurrentConfiguration.serverURL)") //url = "http://x.x.x.x:3000" socket.reconnects = true socket.reconnectWait = 10 socket.nsp = "/messagelist" // Connect socket.connect() socket.onAny {println("got event: \($0.event) with items \($0.items)")} //added this after reading issues on github to at least log anything socket.on("connect") {data, ack in println("socket connected") } socket.on("error") {data in println("socket ERROR") println(data) } 

can anyone confirm this? Is this a version Problem or maybe related to Swift 1.2?

On the server side i cant even recognize a connection attempt. The variable serverURL is the same as i had before and

I am working with iOS 8 and Swift. I want to use the official socket.io client but for some reason it does not attempt to connect. I followed the example given here: https://github.com/socketio/socket.io-client-swift

let socket = SocketIOClient(socketURL: "\(CurrentConfiguration.serverURL)") //url = "http://x.x.x.x:3000" socket.reconnects = true socket.reconnectWait = 10 socket.nsp = "/messagelist" // Connect socket.connect() socket.onAny {println("got event: \($0.event) with items \($0.items)")} //added this after reading issues on github to at least log anything socket.on("connect") {data, ack in println("socket connected") } socket.on("error") {data in println("socket ERROR") println(data) } 

can anyone confirm this? Is this a version Problem or maybe related to Swift 1.2?

On the server side i cant even recognize a connection attempt. The variable serverURL is the same as i had before, using a different library.

Tags in title (http://meta.stackexchange.com/q/19190).
Source Link
jww
  • 103.6k
  • 107
  • 453
  • 975

Swift/iOS8: socket.io official client connection issues?

I wantedam working with iOS 8 and Swift. I want to use the official socket.io client but somehowfor some reason it seems to never even trydoes not attempt to connect. I followed the example given here: https://github.com/socketio/socket.io-client-swift

let socket = SocketIOClient(socketURL: "\(CurrentConfiguration.serverURL)") //url = "http://x.x.x.x:3000" socket.reconnects = true socket.reconnectWait = 10 socket.nsp = "/messagelist" // Connect socket.connect() socket.onAny {println("got event: \($0.event) with items \($0.items)")} //added this after reading issues on github to at least log anything socket.on("connect") {data, ack in println("socket connected") } socket.on("error") {data in println("socket ERROR") println(data) } 

can anyone confirm this? Is this a version Problem or maybe related to Swift 1.2?

On the server side i cant even recognize a connection attempt. The variable serverURL is the same as i had before and

Swift/iOS8: socket.io official client connection issues?

I wanted to use the official socket.io client but somehow it seems to never even try to connect. I followed the example given here: https://github.com/socketio/socket.io-client-swift

let socket = SocketIOClient(socketURL: "\(CurrentConfiguration.serverURL)") //url = "http://x.x.x.x:3000" socket.reconnects = true socket.reconnectWait = 10 socket.nsp = "/messagelist" // Connect socket.connect() socket.onAny {println("got event: \($0.event) with items \($0.items)")} //added this after reading issues on github to at least log anything socket.on("connect") {data, ack in println("socket connected") } socket.on("error") {data in println("socket ERROR") println(data) } 

can anyone confirm this? Is this a version Problem or maybe related to Swift 1.2?

On the server side i cant even recognize a connection attempt. The variable serverURL is the same as i had before and

socket.io official client connection issues?

I am working with iOS 8 and Swift. I want to use the official socket.io client but for some reason it does not attempt to connect. I followed the example given here: https://github.com/socketio/socket.io-client-swift

let socket = SocketIOClient(socketURL: "\(CurrentConfiguration.serverURL)") //url = "http://x.x.x.x:3000" socket.reconnects = true socket.reconnectWait = 10 socket.nsp = "/messagelist" // Connect socket.connect() socket.onAny {println("got event: \($0.event) with items \($0.items)")} //added this after reading issues on github to at least log anything socket.on("connect") {data, ack in println("socket connected") } socket.on("error") {data in println("socket ERROR") println(data) } 

can anyone confirm this? Is this a version Problem or maybe related to Swift 1.2?

On the server side i cant even recognize a connection attempt. The variable serverURL is the same as i had before and

Source Link
longbow
  • 1.6k
  • 1
  • 17
  • 40
Loading