update api/@ohos.net.webSocket.d.ts.

Signed-off-by: Yangys <yangyousheng@huawei.com>
This commit is contained in:
Yangys 2024-02-26 03:39:41 +00:00 committed by Gitee
parent 256e2d3624
commit da20d15139
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -875,7 +875,7 @@ declare namespace webSocket {
* @syscap SystemCapability.Communication.NetStack
* @since 12
*/
on(type: 'headerReceive', callback?: Callback<ResponseHeaders>): void;
on(type: 'headerReceive', callback: Callback<ResponseHeaders>): void;
/**
* Unregisters the observer for HTTP Response Header events.