Rahmat Ade Saputra 3 yıl önce
ebeveyn
işleme
34181bc3e1

+ 1
- 1
app/Http/Controllers/TransactionController.php Dosyayı Görüntüle

@@ -154,11 +154,11 @@ class TransactionController extends Controller
154 154
             // $thermalPrinting = new ThermalPrinting($transaction);
155 155
             // $thermalPrinting->startPrinting(2);
156 156
             try {
157
-                $socket->connect();
158 157
                 $socket = new WebsocketClient(
159 158
                     new SocketClient('ws://127.0.0.1:5544')
160 159
                 );
161 160
                 $socket->setHost('escpos-server');
161
+                $socket->connect();
162 162
                 $socket->send(json_encode($transaction));
163 163
                 $socket->close();
164 164
                 // dd($socket->getConnection()->getCurrentNode());