Fix #198, flashsocket creation would fail

Flashsocket creation was failing because logic which was reused from websocket transport wasn't anymore suitable for flashsocket creation