Skip to content

Instantly share code, notes, and snippets.

View Nazmul56's full-sized avatar
🎯
Focusing

Nazmul Haque Nazmul56

🎯
Focusing
View GitHub Profile

Notify Event Usages

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

CallActivity —————————————————————————————————————————————————————————▶︎ Incoming Activity
										│
┌───────────────────────────────────────────────┐				│

And then print:

print box
# =>
# ┌───────────────────────┐
# │                       │
# │                       │
# │                       │
# │ Drawing a box in │
@Nazmul56
Nazmul56 / APIManager.swift
Created April 26, 2020 09:18
Swift api manager
/
// APIManager.swift
// iOSDuComm
//
// Created by Sufian on 20/6/19.
// Copyright © 2019 Abu Sufian. All rights reserved.
//
import UIKit
import Alamofire

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 {

Peer Connection

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

Enter Api

POST /api/v1/auth/enter

Parameters

None

Request Body

{
 "fbAuthorizationCode": "FB_AUTHORIZATION_CODE"
####################################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
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
Call Establishment Problem
———————————————————————————
Patient App Dr App
———————————————————————————————————————————————————————————————————————
CallActivity ———————————————————————————————> Incoming Activity
|
Accept Call
|
Call Activity Open
|