Auto set secure flag for Socket.IO