mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-23 11:42:36 +08:00
Fix chrome.sockets.tcp.getSockets
It doesn't accept socketId argument, but returns list of all the opened sockets.
This commit is contained in:
1 parent
85af69c915
commit
3c1ef611b3
1 file changed
+1
-1
Vendored
+1
-1
@@ -258,7 +258,7 @@ declare module chrome.sockets.tcp {
|
||||
export function send(socketId: number, data: ArrayBuffer, callback: (sendInfo: SendInfo) => void): void;
|
||||
export function close(socketId: number, callback?: () => void): void;
|
||||
export function getInfo(socketId: number, callback: (socketInfo: SocketInfo) => void): void;
|
||||
export function getSockets(socketId: number, callback: (socketInfos: SocketInfo[]) => void): void;
|
||||
export function getSockets(callback: (socketInfos: SocketInfo[]) => void): void;
|
||||
|
||||
var onReceive: Event<ReceiveEventArgs>;
|
||||
var onReceiveError: Event<ReceiveErrorEventArgs>;
|
||||
|
||||
Reference in new issue
Block a user