I am using XAMPP, Window 8.1, Laravel 5.5 on localhost
I wrote code to translate to laravel using a pusher and it works great. Since the pusher is very expensive, I plan to go to socket.io
Added link below in the main blade.
<script src="{{ asset('socket.io-client/dist/socket.io.js') }}"></script>
Also executed this command in cmd
npm install express ioredis socket.io --save
but it shows me the error below.
If you see a screenshot, error 404 for the url is
http: // localhost: 1234 / socket.io /? EIO = 3 & transport = polling & t = M4VVdoo
but my url
http: // localhost: 1234 / my / learning / public / socket.io /? EIO = 3 & transport = polling & t = M4VVdoo
Any idea why this is happening?
I needed to install below packages.
npm install -g laravel-echo-server
,
, js .
<script src="http://{{ Request::getHost() }}:6001/socket.io/socket.io.js"></script>
http://localhost:1234/my/learning/public/socket.io/?EIO=3&transport=polling&t=M4VVdoo , directiry . - .htaccess, mod_rewrite nginx - try files . ,
http://localhost:1234/my/learning/public/socket.io/?EIO=3&transport=polling&t=M4VVdoo
.htaccess
Source: https://habr.com/ru/post/1691858/More articles:Код состояния Http для исключений - javaПочему функция caret:: train генерирует ошибку, если вызывается с формулой вместо x, y? - rAWS auth ui sdk requires minSdkVersion 23, why? - androidThrottle Mode Problem - laravelKeras LSTM input signal size adjustment - pythonSetting up Git, Jira, Jenkins and eliminating the workflow - gitCrystal exceptions and errors - crystal-langHow to change multiple items at a time in C? - cAdd file name for xargs and awk output - shellCalled in a transaction When the UIsearch user interface and keyboard are shown - iosAll Articles