How to pass custom header information on a Godot4 WebSocketPeer connection?


1 Answer 1


Okay, I have found how to do this:

  1. Create an instance of PackedStringArray
  2. Add it to the WS Client using _set_handshake_headers


var _connHeader = PackedStringArray(["header-key: header-value"])

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .