Can I retrieve multiple types of data, like position, arrival, and departure information, in a single connection to the FlightAware Firehose?
Yes, with a single firehose connection, all of those data elements can be received.
Could please help me with the sample code ?
By default, any firehose initiation command will send all message types that your account has access to. Only when you specify the events
command will the server limit what messages you will receive to just what you request.