Skip to content

Commit

Permalink
Add unused but reserved op 'connect'
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Oct 4, 2018
1 parent 9fbbc6e commit 6d7803b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export { platform } from "./platform";
export { trace } from "./trace";
export { truncateSync, truncate } from "./truncate";
export { FileInfo } from "./fileinfo";
export { dial, listen, Listener, Conn } from "./net";
export { connect, dial, listen, Listener, Conn } from "./net";
export const args: string[] = [];
8 changes: 8 additions & 0 deletions js/net.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,11 @@ export async function dial(network: Network, address: string): Promise<Conn> {
assert(baseRes!.msg(res) != null);
return new ConnImpl(res.rid(), res.remoteAddr()!, res.localAddr()!);
}

// Unused but reserved op.
export async function connect(
network: Network,
address: string
): Promise<Conn> {
return notImplemented();
}

0 comments on commit 6d7803b

Please sign in to comment.