method IRealtimeClient.close IRealtimeClient.close(code?: number,reason?: string): void Stops future reconnect attempts and closes the active socket. Parameters optional code: number optional reason: string Return Type void