I’m trying out the tutorial on Ch 30 WebSockets by Logan Wright from the Book ‘Server-Side Swift with Vapor’. Tried the final share-touch-server and -phone projects and got it to work the first time in the simulator. Now that I try to repeat it in the simulator I’m getting an error ShareTouch[2327:194087] [connection] nw_socket_handle_socket_event [C1.1:2] Socket SO_ERROR [61: Connection refused]. I’m using the shareSessionURL of ws://localhost:8080/session. Please if you could advise.
Is that coming from the simulator or Vapor? A connection refused error means it can’t connect to what it’s trying to connect to. Is the Vapor app definitely running? Can you connect to it from a different client?