Skip to content

Commit

Permalink
Socket: flash extern used wrong type for objectEncoding property
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Sep 4, 2024
1 parent 6ab5246 commit c4a9bb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions externs/air/flash/net/Socket.hx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extern class Socket extends flash.events.EventDispatcher implements flash.utils.
@:require(flash11) var bytesPending(default, never):UInt;
var connected(default, never):Bool;
var endian:flash.utils.Endian;
var objectEncoding:UInt;
var objectEncoding:#if openfl openfl.net.ObjectEncoding #else UInt #end;
@:require(flash10) var timeout:UInt;
#if air
var localAddress(default, never):String;
Expand All @@ -20,7 +20,7 @@ extern class Socket extends flash.events.EventDispatcher implements flash.utils.
@:flash.property @:require(flash11) var bytesPending(get, never):UInt;
@:flash.property var connected(get, never):Bool;
@:flash.property var endian(get, set):flash.utils.Endian;
@:flash.property var objectEncoding(get, set):UInt;
@:flash.property var objectEncoding(get, set):#if openfl openfl.net.ObjectEncoding #else UInt #end;
@:flash.property @:require(flash10) var timeout(get, set):UInt;
#if air
@:flash.property var localAddress(get, never):String;
Expand Down Expand Up @@ -65,7 +65,7 @@ extern class Socket extends flash.events.EventDispatcher implements flash.utils.
private function get_bytesPending():UInt;
private function get_connected():Bool;
private function get_endian():flash.utils.Endian;
private function get_objectEncoding():UInt;
private function get_objectEncoding():#if openfl openfl.net.ObjectEncoding #else UInt #end;
private function get_timeout():UInt;
#if air
private function get_localAddress():String;
Expand All @@ -74,7 +74,7 @@ extern class Socket extends flash.events.EventDispatcher implements flash.utils.
private function get_remotePort():Int;
#end
private function set_endian(value:flash.utils.Endian):flash.utils.Endian;
private function set_objectEncoding(value:UInt):UInt;
private function set_objectEncoding(value:#if openfl openfl.net.ObjectEncoding #else UInt #end):#if openfl openfl.net.ObjectEncoding #else UInt #end;
private function set_timeout(value:UInt):UInt;
#end
}

0 comments on commit c4a9bb8

Please sign in to comment.