mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 06:31:13 +00:00
Convert WebSocket module to use PacketBuffer class
This commit is contained in:
parent
4847b5bff5
commit
c066db4d59
17 changed files with 164 additions and 149 deletions
|
|
@ -100,13 +100,6 @@ int WebSocketMultiplayerPeer::get_available_packet_count() const {
|
|||
return _incoming_packets.size();
|
||||
}
|
||||
|
||||
int WebSocketMultiplayerPeer::get_max_packet_size() const {
|
||||
|
||||
ERR_FAIL_COND_V(!_is_multiplayer, ERR_UNCONFIGURED);
|
||||
|
||||
return MAX_PACKET_SIZE;
|
||||
}
|
||||
|
||||
Error WebSocketMultiplayerPeer::get_packet(const uint8_t **r_buffer, int &r_buffer_size) {
|
||||
|
||||
r_buffer_size = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue