Is it possible to establish a private connection as well as a public connection using the PubNub Socket.IO library?

Yes, establishing both public and private connections is possible. To learn more about using the PubNub Socket.IO library, see these short recipes then dive deeper into the code used to unit test Socket.IO public/private communication.