Socket.IO-客户端-Swift 适用于iOS / OS X的Socket.IO客户端。 例子 import SocketIO let manager = SocketManager ( socketURL : URL ( string : " http://localhost:8080 " ) ! , config : [. log ( true ), . compress ]) let socket = manager. defaultSocket socket. on ( clientEvent : . connect ) {data, ack in print ( "