This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SocketIO from "socket.io"; | |
import io from "socket.io-client"; | |
class Socket { | |
//public socketClient = io("http://localhost:8000"); | |
//public socketClient2 = io("http:<ip:8000>"); | |
public socketClient = io("wss:/<end-point-render>"); | |
public connectClientSocket(): void { | |
this.socketClient.on("connect", () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Flutte side | |
import 'package:flutter/material.dart'; | |
//ignore: library_prefixes | |
import 'package:socket_io_client/socket_io_client.dart' as IO; | |
const apiSocketUrl = 'wss://<render-end-point>.com'; | |
const apiSocketUrl = 'http://localhost:8000'; | |
//👉🏼 obs: Android and Localhost worked perfectly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const numberCel = '554791517799'; | |
function addNine(number) { | |
if (numberCel.slice(0, -numberCel.length + 2) !== '55') { | |
//if (numberCel[0] + numberCel[1] !== '55') { | |
// numberCel.slice(0,-numberCel.length +2) | |
return number; | |
} | |
if ( | |
numberCel[4] === '2' || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
print('No Adulto: \n' + ModelPosologia.posologiaAdulto(DIPIRONA)); | |
print('------------'); | |
print('Em Pediatria: \n' + posologiaPed(DIPIRONA)); | |
} | |
/* | |
No Adulto: | |
• 01 cp de 6/6hs | |
------------ |