MegaBits/SIOSocket

emit not accessibel in swift

Closed this issue · 1 comments

The method emit is not accessible in swift because it is a variadic method.

I had a accessible socket class through a bridging header and every method was accessible except for emit.

I also tried a solution from Stack, http://stackoverflow.com/questions/24195796/how-do-you-call-an-objective-c-variadic-method-from-swift but i didn't got it to work.

A possible workaround would be a method with a NSArray as argument like this:
schermafbeelding 2014-09-24 om 22 38 08

This is the call in swift:
schermafbeelding 2014-09-24 om 22 40 28