Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Nazmul Haque Nazmul56

🎯
Focusing
View GitHub Profile
View Draw Gist.md

And then print:

print box
# =>
# ┌───────────────────────┐
# │                       │
# │                       │
# │                       │
# │   Drawing a box in    │
View notifyEvent.md

Notify Event Usages

┌──────────────────────────────────────────────────┬────────────────────────────────────────────────────┐
│Patient App 		   	   		   │ Dr App				       		│
└──────────────────────────────────────────────────┴────────────────────────────────────────────────────┘

CallActivity —————————————————————————————————————————————————————————▶︎ Incoming Activity
										│
┌───────────────────────────────────────────────┐				│
View APIManager.swift
/
// APIManager.swift
// iOSDuComm
//
// Created by Sufian on 20/6/19.
// Copyright © 2019 Abu Sufian. All rights reserved.
//
import UIKit
import Alamofire
View DoctorDekhaoPeerToPeerCall.md

Socket Connection

	//WebSocketChannelClient.java
 	//For Socket Io
        IO.Options opts = new IO.Options();
        //opts.forceNew = false;
        opts.reconnection = true;
        opts.transports = new String[]{"websocket"};
        opts.upgrade = false;
        try {
View DoctorDekhaoPeerToPeerCall.md

Peer Connection

_______________________________________________________________________
Patient App		      |		      Dr App
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
CallActivity ————————————————————————————————▶︎ Incoming Activity  
					       	    │
						    ▼
					      Accept Call	
View peerToPeerConnection.txt
⎡‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾⎤
⎢ Peer to Peer Connection ⎥
⎣__________________________⎦
_______________________________________________________________________
Patient App | Dr App
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
CallActivity ————————————————————————————————▶︎ Incoming Activity
Accept Call
View test.md

Enter Api

POST /api/v1/auth/enter

Parameters

None

Request Body

{
    "fbAuthorizationCode": "FB_AUTHORIZATION_CODE"
View socket_connection.log
####################################Doctor App #############################################################
2020-03-31 12:26:09.171 32560-2012/com.doctordekhao.doctor D/SocketIo: Socket Connected
2020-03-31 12:26:09.171 32560-2012/com.doctordekhao.doctor D/SocketIo: Socket ID: PkvPBHzvc_e8SMLuASns
2020-03-31 12:26:09.410 32560-2017/com.doctordekhao.doctor D/SocketIo: Socket Reconnect
2020-03-31 12:26:09.414 32560-2017/com.doctordekhao.doctor D/SocketIo: Socket Connected
2020-03-31 12:26:09.414 32560-2017/com.doctordekhao.doctor D/SocketIo: Socket ID: njM3yhbWcDLUqUU-ASoa
2020-03-31 12:26:09.536 32560-2020/com.doctordekhao.doctor D/SocketIo: Socket Reconnect
2020-03-31 12:26:09.539 32560-2020/com.doctordekhao.doctor D/SocketIo: Socket Connected
2020-03-31 12:26:09.539 32560-2020/com.doctordekhao.doctor D/SocketIo: Socket ID: njM3yhbWcDLUqUU-ASoa
2020-03-31 12:26:10.907 32560-2022/com.doctordekhao.doctor D/SocketIo: Socket Disconnected
View CallStablishementProblem.txt
Call Establishment Problem
———————————————————————————
Patient App Dr App
———————————————————————————————————————————————————————————————————————
CallActivity ———————————————————————————————> Incoming Activity
|
Accept Call
|
Call Activity Open
|
View callStatusTodo.txt
CallStatus Related Problem
Patient app | Dr App
——————————————————————————————————————————————————————————
1. Create Call ————————————————————> No Incoming Call
Time Out
Show Network Error Dialog
2. Create Call ————————————————————> Not Accept Call
You can’t perform that action at this time.